home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / packages / scroll-in-place.elc.z / scroll-in-place.elc
Emacs Compiled Lisp  |  1998-05-21  |  31.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 33 3a 32 32 20 31 | 39 39 38 0a 3b 3b 3b 20 |:53:22 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 70 61 63 6b |s-20.3/l|isp/pack|
|000000a0| 61 67 65 73 2f 73 63 72 | 6f 6c 6c 2d 69 6e 2d 70 |ages/scr|oll-in-p|
|000000b0| 6c 61 63 65 2e 65 6c 0a | 3b 3b 3b 20 65 6d 61 63 |lace.el.|;;; emac|
|000000c0| 73 20 76 65 72 73 69 6f | 6e 20 32 30 2e 34 20 22 |s versio|n 20.4 "|
|000000d0| 45 6d 65 72 61 6c 64 22 | 20 58 45 6d 61 63 73 20 |Emerald"| XEmacs |
|000000e0| 20 4c 75 63 69 64 2e 0a | 3b 3b 3b 20 62 79 74 65 | Lucid..|;;; byte|
|000000f0| 63 6f 6d 70 20 76 65 72 | 73 69 6f 6e 20 32 2e 32 |comp ver|sion 2.2|
|00000100| 35 20 58 45 6d 61 63 73 | 3b 20 32 32 2d 4d 61 72 |5 XEmacs|; 22-Mar|
|00000110| 2d 39 36 2e 0a 3b 3b 3b | 20 6f 70 74 69 6d 69 7a |-96..;;;| optimiz|
|00000120| 61 74 69 6f 6e 20 69 73 | 20 6f 6e 2e 0a 3b 3b 3b |ation is| on..;;;|
|00000130| 20 74 68 69 73 20 66 69 | 6c 65 20 75 73 65 73 20 | this fi|le uses |
|00000140| 6f 70 63 6f 64 65 73 20 | 77 68 69 63 68 20 64 6f |opcodes |which do|
|00000150| 20 6e 6f 74 20 65 78 69 | 73 74 20 69 6e 20 45 6d | not exi|st in Em|
|00000160| 61 63 73 20 31 39 2e 0a | 0a 28 69 66 20 28 61 6e |acs 19..|.(if (an|
|00000170| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 6d 61 63 73 |d (bound|p 'emacs|
|00000180| 2d 76 65 72 73 69 6f 6e | 29 0a 09 20 28 6f 72 20 |-version|).. (or |
|00000190| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 70 |(and (bo|undp 'ep|
|000001a0| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 20 65 70 |och::ver|sion) ep|
|000001b0| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 0a 09 20 |och::ver|sion).. |
|000001c0| 20 20 20 20 28 73 74 72 | 69 6e 67 2d 6c 65 73 73 | (str|ing-less|
|000001d0| 70 20 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 20 |p emacs-|version |
|000001e0| 22 32 30 22 29 29 29 0a | 20 20 20 20 28 65 72 72 |"20"))).| (err|
|000001f0| 6f 72 20 22 60 73 63 72 | 6f 6c 6c 2d 69 6e 2d 70 |or "`scr|oll-in-p|
|00000200| 6c 61 63 65 2e 65 6c 27 | 20 77 61 73 20 63 6f 6d |lace.el'| was com|
|00000210| 70 69 6c 65 64 20 66 6f | 72 20 45 6d 61 63 73 20 |piled fo|r Emacs |
|00000220| 32 30 22 29 29 0a 0a 28 | 6f 72 20 28 62 6f 75 6e |20"))..(|or (boun|
|00000230| 64 70 20 27 63 75 72 72 | 65 6e 74 2d 6c 6f 61 64 |dp 'curr|ent-load|
|00000240| 2d 6c 69 73 74 29 20 28 | 73 65 74 71 20 63 75 72 |-list) (|setq cur|
|00000250| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 20 6e |rent-loa|d-list n|
|00000260| 69 6c 29 29 0a 0a 0a 23 | 40 36 32 35 20 2a 57 68 |il))...#|@625 *Wh|
|00000270| 65 6e 20 74 68 69 73 20 | 76 61 72 69 61 62 6c 65 |en this |variable|
|00000280| 20 69 73 20 74 72 75 65 | 20 28 69 2e 65 2e 2c 20 | is true| (i.e., |
|00000290| 6e 6f 6e 2d 60 6e 69 6c | 27 29 2c 20 74 68 65 20 |non-`nil|'), the |
|000002a0| 73 74 61 6e 64 61 72 64 | 20 47 4e 55 20 45 6d 61 |standard| GNU Ema|
|000002b0| 63 73 0a 76 65 72 74 69 | 63 61 6c 20 73 63 72 6f |cs.verti|cal scro|
|000002c0| 6c 6c 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 20 60 |lling co|mmands `|
|000002d0| 73 63 72 6f 6c 6c 2d 64 | 6f 77 6e 27 2c 20 60 73 |scroll-d|own', `s|
|000002e0| 63 72 6f 6c 6c 2d 75 70 | 27 2c 20 60 73 63 72 6f |croll-up|', `scro|
|000002f0| 6c 6c 2d 6f 74 68 65 72 | 2d 77 69 6e 64 6f 77 2d |ll-other|-window-|
|00000300| 0a 64 6f 77 6e 27 2c 20 | 61 6e 64 20 60 73 63 72 |.down', |and `scr|
|00000310| 6f 6c 6c 2d 6f 74 68 65 | 72 2d 77 69 6e 64 6f 77 |oll-othe|r-window|
|00000320| 27 20 77 69 6c 6c 20 61 | 74 74 65 6d 70 74 20 74 |' will a|ttempt t|
|00000330| 6f 20 6b 65 65 70 20 70 | 6f 69 6e 74 20 61 74 20 |o keep p|oint at |
|00000340| 69 74 73 20 63 75 72 72 | 65 6e 74 0a 70 6f 73 69 |its curr|ent.posi|
|00000350| 74 69 6f 6e 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |tion in |the wind|
|00000360| 6f 77 20 28 77 69 6e 64 | 6f 77 20 6c 69 6e 65 20 |ow (wind|ow line |
|00000370| 61 6e 64 20 63 6f 6c 75 | 6d 6e 29 2e 20 20 49 6e |and colu|mn). In|
|00000380| 20 6f 74 68 65 72 20 77 | 6f 72 64 73 2c 20 70 6f | other w|ords, po|
|00000390| 69 6e 74 20 73 74 61 79 | 73 0a 22 69 6e 20 70 6c |int stay|s."in pl|
|000003a0| 61 63 65 22 20 77 69 74 | 68 69 6e 20 74 68 65 20 |ace" wit|hin the |
|000003b0| 77 69 6e 64 6f 77 2e 0a | 0a 57 68 65 6e 20 74 68 |window..|.When th|
|000003c0| 69 73 20 76 61 72 69 61 | 62 6c 65 20 69 73 20 60 |is varia|ble is `|
|000003d0| 6e 69 6c 27 20 74 68 65 | 20 73 74 61 6e 64 61 72 |nil' the| standar|
|000003e0| 64 20 47 4e 55 20 45 6d | 61 63 73 20 76 65 72 74 |d GNU Em|acs vert|
|000003f0| 69 63 61 6c 20 73 63 72 | 6f 6c 6c 69 6e 67 20 63 |ical scr|olling c|
|00000400| 6f 6d 6d 61 6e 64 73 0a | 62 65 68 61 76 65 20 61 |ommands.|behave a|
|00000410| 73 20 75 73 75 61 6c 2e | 20 20 54 68 65 20 22 69 |s usual.| The "i|
|00000420| 6e 20 70 6c 61 63 65 22 | 20 65 71 75 69 76 61 6c |n place"| equival|
|00000430| 65 6e 74 73 2c 20 68 6f | 77 65 76 65 72 2c 20 61 |ents, ho|wever, a|
|00000440| 72 65 20 73 74 69 6c 6c | 20 61 76 61 69 6c 61 62 |re still| availab|
|00000450| 6c 65 20 61 73 0a 73 65 | 70 61 72 61 74 65 20 63 |le as.se|parate c|
|00000460| 6f 6d 6d 61 6e 64 73 2e | 0a 0a 54 68 69 73 20 76 |ommands.|..This v|
|00000470| 61 72 69 61 62 6c 65 20 | 6d 61 79 20 62 65 20 6d |ariable |may be m|
|00000480| 61 64 65 20 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c |ade buff|er-local|
|00000490| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 64 69 73 | in orde|r to dis|
|000004a0| 61 62 6c 65 20 28 6f 72 | 20 65 6e 61 62 6c 65 29 |able (or| enable)|
|000004b0| 20 22 69 6e 0a 70 6c 61 | 63 65 22 20 73 63 72 6f | "in.pla|ce" scro|
|000004c0| 6c 6c 69 6e 67 20 69 6e | 20 70 61 72 74 69 63 75 |lling in| particu|
|000004d0| 6c 61 72 20 62 75 66 66 | 65 72 73 2e 1f 0a 28 64 |lar buff|ers...(d|
|000004e0| 65 66 76 61 72 20 73 63 | 72 6f 6c 6c 2d 69 6e 2d |efvar sc|roll-in-|
|000004f0| 70 6c 61 63 65 20 74 20 | 28 23 24 20 2e 20 2d 36 |place t |(#$ . -6|
|00000500| 32 31 29 29 0a 23 40 36 | 33 32 20 2a 57 68 65 6e |21)).#@6|32 *When|
|00000510| 20 74 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 | this va|riable i|
|00000520| 73 20 60 6e 69 6c 27 20 | 74 68 65 20 22 69 6e 20 |s `nil' |the "in |
|00000530| 70 6c 61 63 65 22 20 73 | 63 72 6f 6c 6c 69 6e 67 |place" s|crolling|
|00000540| 20 63 6f 6d 6d 61 6e 64 | 73 20 77 69 6c 6c 20 61 | command|s will a|
|00000550| 76 6f 69 64 0a 64 69 73 | 70 6c 61 79 69 6e 67 20 |void.dis|playing |
|00000560| 65 6d 70 74 79 20 6c 69 | 6e 65 73 20 70 61 73 74 |empty li|nes past|
|00000570| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|00000580| 62 75 66 66 65 72 20 74 | 65 78 74 2e 20 20 49 6e |buffer t|ext. In|
|00000590| 20 6f 74 68 65 72 20 77 | 6f 72 64 73 2c 20 6a 75 | other w|ords, ju|
|000005a0| 73 74 0a 61 73 20 79 6f | 75 20 63 61 6e 27 74 20 |st.as yo|u can't |
|000005b0| 73 65 65 20 22 64 65 61 | 64 20 73 70 61 63 65 22 |see "dea|d space"|
|000005c0| 20 62 65 66 6f 72 65 20 | 74 68 65 20 62 65 67 69 | before |the begi|
|000005d0| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 62 75 66 |nning of| the buf|
|000005e0| 66 65 72 20 74 65 78 74 | 2c 20 74 68 65 0a 22 69 |fer text|, the."i|
|000005f0| 6e 20 70 6c 61 63 65 22 | 20 73 63 72 6f 6c 6c 69 |n place"| scrolli|
|00000600| 6e 67 20 63 6f 6d 6d 61 | 6e 64 73 20 74 72 79 20 |ng comma|nds try |
|00000610| 74 6f 20 61 76 6f 69 64 | 20 64 69 73 70 6c 61 79 |to avoid| display|
|00000620| 69 6e 67 20 22 64 65 61 | 64 20 73 70 61 63 65 22 |ing "dea|d space"|
|00000630| 20 70 61 73 74 20 74 68 | 65 0a 65 6e 64 20 6f 66 | past th|e.end of|
|00000640| 20 74 68 65 20 62 75 66 | 66 65 72 20 74 65 78 74 | the buf|fer text|
|00000650| 2e 20 20 54 68 69 73 20 | 68 65 6c 70 73 20 6d 61 |. This |helps ma|
|00000660| 6b 65 20 74 68 65 20 6d | 6f 73 74 20 6f 66 20 77 |ke the m|ost of w|
|00000670| 69 6e 64 6f 77 20 72 65 | 61 6c 20 65 73 74 61 74 |indow re|al estat|
|00000680| 65 2e 0a 0a 4e 6f 74 65 | 20 74 68 61 74 20 73 6f |e...Note| that so|
|00000690| 6d 65 74 69 6d 65 73 20 | 69 74 20 69 73 20 6e 65 |metimes |it is ne|
|000006a0| 63 65 73 73 61 72 79 20 | 74 6f 20 64 69 73 70 6c |cessary |to displ|
|000006b0| 61 79 20 22 64 65 61 64 | 20 73 70 61 63 65 22 20 |ay "dead| space" |
|000006c0| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 6d 61 6b 65 |in order| to make|
|000006d0| 0a 61 20 70 72 65 76 69 | 6f 75 73 20 73 63 72 6f |.a previ|ous scro|
|000006e0| 6c 6c 69 6e 67 20 61 63 | 74 69 6f 6e 20 72 65 76 |lling ac|tion rev|
|000006f0| 65 72 73 69 62 6c 65 2e | 0a 0a 57 68 65 6e 20 74 |ersible.|..When t|
|00000700| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 69 73 20 |his vari|able is |
|00000710| 6e 6f 6e 2d 60 6e 69 6c | 27 20 74 68 65 20 22 69 |non-`nil|' the "i|
|00000720| 6e 20 70 6c 61 63 65 22 | 20 73 63 72 6f 6c 6c 69 |n place"| scrolli|
|00000730| 6e 67 20 63 6f 6d 6d 61 | 6e 64 73 20 77 69 6c 6c |ng comma|nds will|
|00000740| 20 61 6c 77 61 79 73 0a | 61 6c 6c 6f 77 20 62 6c | always.|allow bl|
|00000750| 61 6e 6b 20 6c 69 6e 65 | 73 20 74 6f 20 62 65 20 |ank line|s to be |
|00000760| 73 68 6f 77 6e 20 70 61 | 73 74 20 74 68 65 20 65 |shown pa|st the e|
|00000770| 6e 64 20 6f 66 20 74 68 | 65 20 62 75 66 66 65 72 |nd of th|e buffer|
|00000780| 2e 1f 0a 28 64 65 66 76 | 61 72 20 73 63 72 6f 6c |...(defv|ar scrol|
|00000790| 6c 2d 61 6c 6c 6f 77 2d | 62 6c 61 6e 6b 2d 6c 69 |l-allow-|blank-li|
|000007a0| 6e 65 73 2d 70 61 73 74 | 2d 65 6f 62 20 6e 69 6c |nes-past|-eob nil|
|000007b0| 20 28 23 24 20 2e 20 2d | 31 32 39 31 29 29 0a 23 | (#$ . -|1291)).#|
|000007c0| 40 36 31 37 20 54 68 65 | 20 64 65 66 61 75 6c 74 |@617 The| default|
|000007d0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|000007e0| 20 74 6f 20 62 65 20 73 | 63 72 6f 6c 6c 65 64 20 | to be s|crolled |
|000007f0| 62 79 20 77 68 65 6e 20 | 61 20 6e 65 77 20 73 65 |by when |a new se|
|00000800| 71 75 65 6e 63 65 20 6f | 66 20 22 69 6e 0a 70 6c |quence o|f "in.pl|
|00000810| 61 63 65 22 20 73 63 72 | 6f 6c 6c 69 6e 67 20 63 |ace" scr|olling c|
|00000820| 6f 6d 6d 61 6e 64 73 20 | 62 65 67 69 6e 73 2e 20 |ommands |begins. |
|00000830| 20 4f 66 20 63 6f 75 72 | 73 65 2c 20 77 68 65 6e | Of cour|se, when|
|00000840| 20 61 6e 20 65 78 70 6c | 69 63 69 74 20 6e 75 6d | an expl|icit num|
|00000850| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 0a 69 73 20 |ber of l|ines.is |
|00000860| 73 70 65 63 69 66 69 65 | 64 2c 20 74 68 61 74 20 |specifie|d, that |
|00000870| 65 78 70 6c 69 63 69 74 | 20 6e 75 6d 62 65 72 20 |explicit| number |
|00000880| 74 61 6b 65 73 20 70 72 | 65 63 65 64 65 6e 63 65 |takes pr|ecedence|
|00000890| 2e 20 20 53 65 65 20 74 | 68 65 20 64 6f 63 75 6d |. See t|he docum|
|000008a0| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 0a 74 68 65 |entation| for.the|
|000008b0| 20 66 75 6e 63 74 69 6f | 6e 20 60 73 63 72 6f 6c | functio|n `scrol|
|000008c0| 6c 2d 77 69 6e 64 6f 77 | 2d 69 6e 2d 70 6c 61 63 |l-window|-in-plac|
|000008d0| 65 27 20 66 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |e' for m|ore info|
|000008e0| 72 6d 61 74 69 6f 6e 2e | 0a 0a 49 66 20 74 68 69 |rmation.|..If thi|
|000008f0| 73 20 76 61 72 69 61 62 | 6c 65 20 69 73 20 6e 6f |s variab|le is no|
|00000900| 74 20 62 6f 75 6e 64 20 | 74 6f 20 61 20 6e 75 6d |t bound |to a num|
|00000910| 62 65 72 2c 20 74 68 65 | 6e 20 74 68 65 20 64 65 |ber, the|n the de|
|00000920| 66 61 75 6c 74 20 6e 75 | 6d 62 65 72 20 6f 66 20 |fault nu|mber of |
|00000930| 6c 69 6e 65 73 20 69 73 | 0a 74 68 65 20 68 65 69 |lines is|.the hei|
|00000940| 67 68 74 20 6f 66 20 74 | 68 65 20 77 69 6e 64 6f |ght of t|he windo|
|00000950| 77 20 74 6f 20 62 65 20 | 73 63 72 6f 6c 6c 65 64 |w to be |scrolled|
|00000960| 20 6d 69 6e 75 73 20 60 | 6e 65 78 74 2d 73 63 72 | minus `|next-scr|
|00000970| 65 65 6e 2d 63 6f 6e 74 | 65 78 74 2d 6c 69 6e 65 |een-cont|ext-line|
|00000980| 73 27 2e 0a 0a 54 68 69 | 73 20 76 61 72 69 61 62 |s'...Thi|s variab|
|00000990| 6c 65 20 73 68 6f 75 6c | 64 20 6e 6f 74 20 62 65 |le shoul|d not be|
|000009a0| 20 73 65 74 20 67 6c 6f | 62 61 6c 6c 79 21 20 20 | set glo|bally! |
|000009b0| 43 6f 6d 6d 61 6e 64 73 | 20 74 68 61 74 20 77 61 |Commands| that wa|
|000009c0| 6e 74 20 74 6f 20 73 70 | 65 63 69 66 79 20 61 0a |nt to sp|ecify a.|
|000009d0| 64 65 66 61 75 6c 74 20 | 73 63 72 6f 6c 6c 69 6e |default |scrollin|
|000009e0| 67 20 64 69 73 74 61 6e | 63 65 20 73 68 6f 75 6c |g distan|ce shoul|
|000009f0| 64 20 6a 75 73 74 20 62 | 69 6e 64 20 74 68 65 20 |d just b|ind the |
|00000a00| 76 61 72 69 61 62 6c 65 | 20 60 73 63 72 6f 6c 6c |variable| `scroll|
|00000a10| 2d 64 65 66 61 75 6c 74 | 2d 6c 69 6e 65 73 27 0a |-default|-lines'.|
|00000a20| 74 65 6d 70 6f 72 61 72 | 69 6c 79 2e 1f 0a 28 64 |temporar|ily...(d|
|00000a30| 65 66 76 61 72 20 73 63 | 72 6f 6c 6c 2d 64 65 66 |efvar sc|roll-def|
|00000a40| 61 75 6c 74 2d 6c 69 6e | 65 73 20 6e 69 6c 20 28 |ault-lin|es nil (|
|00000a50| 23 24 20 2e 20 31 39 38 | 39 29 29 0a 23 40 31 32 |#$ . 198|9)).#@12|
|00000a60| 34 38 20 54 68 65 20 65 | 78 70 6c 69 63 69 74 6c |48 The e|xplicitl|
|00000a70| 79 20 73 70 65 63 69 66 | 69 65 64 20 22 67 72 6f |y specif|ied "gro|
|00000a80| 75 70 73 22 20 6f 66 20 | 22 69 6e 20 70 6c 61 63 |ups" of |"in plac|
|00000a90| 65 22 20 73 63 72 6f 6c | 6c 69 6e 67 20 63 6f 6d |e" scrol|ling com|
|00000aa0| 6d 61 6e 64 73 2e 0a 54 | 68 69 73 20 76 61 72 69 |mands..T|his vari|
|00000ab0| 61 62 6c 65 20 73 68 6f | 75 6c 64 20 62 65 20 73 |able sho|uld be s|
|00000ac0| 65 74 20 62 65 66 6f 72 | 65 20 6f 72 20 69 6d 6d |et befor|e or imm|
|00000ad0| 65 64 69 61 74 65 6c 79 | 20 61 66 74 65 72 20 74 |ediately| after t|
|00000ae0| 68 65 20 22 69 6e 20 70 | 6c 61 63 65 22 0a 73 63 |he "in p|lace".sc|
|00000af0| 72 6f 6c 6c 69 6e 67 20 | 70 61 63 6b 61 67 65 20 |rolling |package |
|00000b00| 69 73 20 6c 6f 61 64 65 | 64 2c 20 61 6e 64 20 74 |is loade|d, and t|
|00000b10| 68 65 6e 20 6e 6f 74 20 | 63 68 61 6e 67 65 64 20 |hen not |changed |
|00000b20| 61 66 74 65 72 20 74 68 | 61 74 2e 0a 0a 55 73 75 |after th|at...Usu|
|00000b30| 61 6c 6c 79 2c 20 22 69 | 6e 20 70 6c 61 63 65 22 |ally, "i|n place"|
|00000b40| 20 73 63 72 6f 6c 6c 69 | 6e 67 20 63 6f 6d 6d 61 | scrolli|ng comma|
|00000b50| 6e 64 73 20 73 68 61 72 | 65 20 73 74 61 74 65 20 |nds shar|e state |
|00000b60| 28 65 2e 67 2e 2c 20 74 | 68 65 20 6e 75 6d 62 65 |(e.g., t|he numbe|
|00000b70| 72 20 6f 66 20 6c 69 6e | 65 73 0a 74 6f 20 73 63 |r of lin|es.to sc|
|00000b80| 72 6f 6c 6c 20 62 79 29 | 20 77 69 74 68 20 61 6e |roll by)| with an|
|00000b90| 79 20 61 6e 64 20 61 6c | 6c 20 69 6d 6d 65 64 69 |y and al|l immedi|
|00000ba0| 61 74 65 6c 79 20 70 72 | 65 76 69 6f 75 73 20 22 |ately pr|evious "|
|00000bb0| 69 6e 20 70 6c 61 63 65 | 22 20 73 63 72 6f 6c 6c |in place|" scroll|
|00000bc0| 69 6e 67 0a 63 6f 6d 6d | 61 6e 64 73 2e 20 20 53 |ing.comm|ands. S|
|00000bd0| 6f 6d 65 74 69 6d 65 73 | 2c 20 68 6f 77 65 76 65 |ometimes|, howeve|
|00000be0| 72 2c 20 74 68 69 73 20 | 69 73 20 75 6e 64 65 73 |r, this |is undes|
|00000bf0| 69 72 61 62 6c 65 2e 20 | 20 49 6e 20 74 68 65 73 |irable. | In thes|
|00000c00| 65 20 63 61 73 65 73 20 | 74 68 65 20 22 69 6e 0a |e cases |the "in.|
|00000c10| 70 6c 61 63 65 22 20 73 | 63 72 6f 6c 6c 69 6e 67 |place" s|crolling|
|00000c20| 20 63 6f 6d 6d 61 6e 64 | 73 20 63 61 6e 20 62 65 | command|s can be|
|00000c30| 20 64 69 76 69 64 65 64 | 20 69 6e 74 6f 20 67 72 | divided| into gr|
|00000c40| 6f 75 70 73 2e 20 20 41 | 20 63 6f 6d 6d 61 6e 64 |oups. A| command|
|00000c50| 20 69 6e 20 61 20 67 72 | 6f 75 70 0a 6f 6e 6c 79 | in a gr|oup.only|
|00000c60| 20 73 68 61 72 65 73 20 | 73 74 61 74 65 20 77 69 | shares |state wi|
|00000c70| 74 68 20 6d 65 6d 62 65 | 72 73 20 6f 66 20 69 74 |th membe|rs of it|
|00000c80| 73 20 67 72 6f 75 70 2e | 0a 0a 45 61 63 68 20 65 |s group.|..Each e|
|00000c90| 6c 65 6d 65 6e 74 20 6f | 66 20 60 73 63 72 6f 6c |lement o|f `scrol|
|00000ca0| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 67 72 6f 75 70 73 |l-comman|d-groups|
|00000cb0| 27 20 69 73 20 61 20 6c | 69 73 74 20 74 68 61 74 |' is a l|ist that|
|00000cc0| 20 63 6f 6e 74 61 69 6e | 73 20 61 6c 6c 20 6f 66 | contain|s all of|
|00000cd0| 20 74 68 65 0a 6d 65 6d | 62 65 72 73 20 6f 66 20 | the.mem|bers of |
|00000ce0| 61 20 75 6e 69 71 75 65 | 20 63 6f 6d 6d 61 6e 64 |a unique| command|
|00000cf0| 20 67 72 6f 75 70 2e 20 | 20 46 6f 72 20 65 78 61 | group. | For exa|
|00000d00| 6d 70 6c 65 2c 20 69 66 | 20 74 68 65 72 65 20 77 |mple, if| there w|
|00000d10| 65 72 65 20 6f 6e 6c 79 | 20 6f 6e 65 0a 65 78 70 |ere only| one.exp|
|00000d20| 6c 69 63 69 74 20 67 72 | 6f 75 70 20 61 6e 64 20 |licit gr|oup and |
|00000d30| 74 68 61 74 20 67 72 6f | 75 70 20 63 6f 6e 74 61 |that gro|up conta|
|00000d40| 69 6e 65 64 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |ined the| command|
|00000d50| 73 20 60 73 63 72 6f 6c | 6c 2d 64 6f 77 6e 2d 6f |s `scrol|l-down-o|
|00000d60| 6e 65 2d 6c 69 6e 65 27 | 20 61 6e 64 0a 60 73 63 |ne-line'| and.`sc|
|00000d70| 72 6f 6c 6c 2d 75 70 2d | 6f 6e 65 2d 6c 69 6e 65 |roll-up-|one-line|
|00000d80| 27 2c 20 74 68 65 6e 20 | 60 73 63 72 6f 6c 6c 2d |', then |`scroll-|
|00000d90| 63 6f 6d 6d 61 6e 64 2d | 67 72 6f 75 70 73 27 20 |command-|groups' |
|00000da0| 77 6f 75 6c 64 20 62 65 | 20 73 65 74 20 74 6f 3a |would be| set to:|
|00000db0| 0a 0a 20 20 28 28 73 63 | 72 6f 6c 6c 2d 64 6f 77 |.. ((sc|roll-dow|
|00000dc0| 6e 2d 6f 6e 65 2d 6c 69 | 6e 65 20 73 63 72 6f 6c |n-one-li|ne scrol|
|00000dd0| 6c 2d 75 70 2d 6f 6e 65 | 2d 6c 69 6e 65 29 29 0a |l-up-one|-line)).|
|00000de0| 0a 43 6f 6d 6d 61 6e 64 | 73 20 74 68 61 74 20 61 |.Command|s that a|
|00000df0| 72 65 20 6e 6f 74 20 69 | 6e 20 61 6e 79 20 65 78 |re not i|n any ex|
|00000e00| 70 6c 69 63 69 74 6c 79 | 20 73 70 65 63 69 66 69 |plicitly| specifi|
|00000e10| 65 64 20 67 72 6f 75 70 | 20 61 72 65 20 61 64 64 |ed group| are add|
|00000e20| 65 64 20 74 6f 20 61 20 | 64 65 66 61 75 6c 74 0a |ed to a |default.|
|00000e30| 67 72 6f 75 70 2e 20 20 | 54 68 61 74 20 67 72 6f |group. |That gro|
|00000e40| 75 70 20 69 73 20 73 74 | 6f 72 65 64 20 69 6e 20 |up is st|ored in |
|00000e50| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 60 73 63 |the vari|able `sc|
|00000e60| 72 6f 6c 6c 2d 64 65 66 | 61 75 6c 74 2d 63 6f 6d |roll-def|ault-com|
|00000e70| 6d 61 6e 64 2d 67 72 6f | 75 70 27 2e 0a 0a 54 68 |mand-gro|up'...Th|
|00000e80| 65 20 22 69 6e 20 70 6c | 61 63 65 22 20 73 63 72 |e "in pl|ace" scr|
|00000e90| 6f 6c 6c 69 6e 67 20 66 | 75 6e 63 74 69 6f 6e 73 |olling f|unctions|
|00000ea0| 20 61 73 73 75 6d 65 20 | 74 68 61 74 20 61 6c 6c | assume |that all|
|00000eb0| 20 6f 66 20 74 68 65 20 | 73 63 72 6f 6c 6c 69 6e | of the |scrollin|
|00000ec0| 67 20 63 6f 6d 6d 61 6e | 64 0a 67 72 6f 75 70 73 |g comman|d.groups|
|00000ed0| 20 61 72 65 20 6e 6f 6e | 69 6e 74 65 72 73 65 63 | are non|intersec|
|00000ee0| 74 69 6e 67 20 28 69 2e | 65 2e 2c 20 6e 6f 20 63 |ting (i.|e., no c|
|00000ef0| 6f 6d 6d 61 6e 64 20 69 | 73 20 69 6e 20 6d 6f 72 |ommand i|s in mor|
|00000f00| 65 20 74 68 61 6e 20 6f | 6e 65 20 67 72 6f 75 70 |e than o|ne group|
|00000f10| 29 20 61 6e 64 0a 6f 6e | 6c 79 20 63 6f 6e 74 61 |) and.on|ly conta|
|00000f20| 69 6e 20 22 69 6e 20 70 | 6c 61 63 65 22 20 73 63 |in "in p|lace" sc|
|00000f30| 72 6f 6c 6c 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |rolling |commands|
|00000f40| 2e 1f 0a 28 64 65 66 76 | 61 72 20 73 63 72 6f 6c |...(defv|ar scrol|
|00000f50| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 67 72 6f 75 70 73 |l-comman|d-groups|
|00000f60| 20 6e 69 6c 20 28 23 24 | 20 2e 20 32 36 35 39 29 | nil (#$| . 2659)|
|00000f70| 29 0a 23 40 33 35 32 20 | 54 68 65 20 73 65 74 20 |).#@352 |The set |
|00000f80| 6f 66 20 22 69 6e 20 70 | 6c 61 63 65 22 20 73 63 |of "in p|lace" sc|
|00000f90| 72 6f 6c 6c 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |rolling |commands|
|00000fa0| 20 74 68 61 74 20 61 72 | 65 20 6e 6f 74 20 6d 65 | that ar|e not me|
|00000fb0| 6d 62 65 72 73 20 6f 66 | 20 61 6e 79 0a 65 78 70 |mbers of| any.exp|
|00000fc0| 6c 69 63 69 74 6c 79 20 | 64 65 66 69 6e 65 64 20 |licitly |defined |
|00000fd0| 67 72 6f 75 70 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |group of| command|
|00000fe0| 73 2e 20 20 54 68 69 73 | 20 73 65 74 20 6f 66 20 |s. This| set of |
|00000ff0| 63 6f 6d 6d 61 6e 64 73 | 20 69 73 20 61 6e 20 69 |commands| is an i|
|00001000| 6d 70 6c 69 63 69 74 6c | 79 0a 64 65 66 69 6e 65 |mplicitl|y.define|
|00001010| 64 20 67 72 6f 75 70 2c | 20 63 6f 6e 73 74 72 75 |d group,| constru|
|00001020| 63 74 65 64 20 61 73 20 | 22 69 6e 20 70 6c 61 63 |cted as |"in plac|
|00001030| 65 22 20 63 6f 6d 6d 61 | 6e 64 73 20 61 72 65 20 |e" comma|nds are |
|00001040| 69 6e 76 6f 6b 65 64 2c | 20 61 6e 64 20 6d 65 6d |invoked,| and mem|
|00001050| 62 65 72 73 20 6f 66 0a | 74 68 69 73 20 67 72 6f |bers of.|this gro|
|00001060| 75 70 20 73 68 61 72 65 | 20 73 74 61 74 65 20 61 |up share| state a|
|00001070| 6d 6f 6e 67 20 74 68 65 | 6d 73 65 6c 76 65 73 2e |mong the|mselves.|
|00001080| 20 20 53 65 65 20 74 68 | 65 20 64 6f 63 75 6d 65 | See th|e docume|
|00001090| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 74 68 65 0a |ntation |for the.|
|000010a0| 76 61 72 69 61 62 6c 65 | 20 60 73 63 72 6f 6c 6c |variable| `scroll|
|000010b0| 2d 63 6f 6d 6d 61 6e 64 | 2d 67 72 6f 75 70 73 27 |-command|-groups'|
|000010c0| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d | for mor|e inform|
|000010d0| 61 74 69 6f 6e 2e 1f 0a | 28 64 65 66 76 61 72 20 |ation...|(defvar |
|000010e0| 73 63 72 6f 6c 6c 2d 64 | 65 66 61 75 6c 74 2d 63 |scroll-d|efault-c|
|000010f0| 6f 6d 6d 61 6e 64 2d 67 | 72 6f 75 70 20 6e 69 6c |ommand-g|roup nil|
|00001100| 20 28 23 24 20 2e 20 33 | 39 36 30 29 29 0a 23 40 | (#$ . 3|960)).#@|
|00001110| 33 30 30 20 54 68 65 20 | 6e 75 6d 62 65 72 20 6f |300 The |number o|
|00001120| 66 20 77 69 6e 64 6f 77 | 20 6c 69 6e 65 73 20 74 |f window| lines t|
|00001130| 68 61 74 20 63 6f 6e 74 | 61 69 6e 65 64 20 62 75 |hat cont|ained bu|
|00001140| 66 66 65 72 20 74 65 78 | 74 20 77 68 65 6e 20 74 |ffer tex|t when t|
|00001150| 68 65 20 63 75 72 72 65 | 6e 74 0a 73 65 71 75 65 |he curre|nt.seque|
|00001160| 6e 63 65 20 6f 66 20 22 | 69 6e 20 70 6c 61 63 65 |nce of "|in place|
|00001170| 22 20 73 63 72 6f 6c 6c | 69 6e 67 20 63 6f 6d 6d |" scroll|ing comm|
|00001180| 61 6e 64 73 20 73 74 61 | 72 74 65 64 2e 20 20 55 |ands sta|rted. U|
|00001190| 6e 6c 65 73 73 20 74 68 | 65 20 76 61 72 69 61 62 |nless th|e variab|
|000011a0| 6c 65 0a 60 73 63 72 6f | 6c 6c 2d 69 6e 2d 70 6c |le.`scro|ll-in-pl|
|000011b0| 61 63 65 2d 61 6c 6c 6f | 77 2d 62 6c 61 6e 6b 2d |ace-allo|w-blank-|
|000011c0| 6c 69 6e 65 73 2d 70 61 | 73 74 2d 65 6f 62 27 20 |lines-pa|st-eob' |
|000011d0| 69 73 20 74 72 75 65 2c | 20 74 68 65 20 22 69 6e |is true,| the "in|
|000011e0| 20 70 6c 61 63 65 22 0a | 73 63 72 6f 6c 6c 69 6e | place".|scrollin|
|000011f0| 67 20 63 6f 6d 6d 61 6e | 64 73 20 65 6e 73 75 72 |g comman|ds ensur|
|00001200| 65 20 74 68 61 74 20 61 | 74 20 6c 65 61 73 74 20 |e that a|t least |
|00001210| 74 68 69 73 20 6d 61 6e | 79 20 74 65 78 74 20 6c |this man|y text l|
|00001220| 69 6e 65 73 20 61 72 65 | 20 76 69 73 69 62 6c 65 |ines are| visible|
|00001230| 20 61 74 20 61 6c 6c 0a | 74 69 6d 65 73 2e 1f 0a | at all.|times...|
|00001240| 28 64 65 66 76 61 72 20 | 73 63 72 6f 6c 6c 2d 69 |(defvar |scroll-i|
|00001250| 6e 69 74 69 61 6c 6c 79 | 2d 64 69 73 70 6c 61 79 |nitially|-display|
|00001260| 65 64 2d 6c 69 6e 65 73 | 20 30 20 28 23 24 20 2e |ed-lines| 0 (#$ .|
|00001270| 20 34 33 37 32 29 29 0a | 23 40 38 30 20 54 68 65 | 4372)).|#@80 The|
|00001280| 20 77 69 6e 64 6f 77 20 | 74 68 61 74 20 77 61 73 | window |that was|
|00001290| 20 6d 6f 73 74 20 72 65 | 63 65 6e 74 6c 79 20 73 | most re|cently s|
|000012a0| 63 72 6f 6c 6c 65 64 20 | 62 79 20 61 6e 20 22 69 |crolled |by an "i|
|000012b0| 6e 20 70 6c 61 63 65 22 | 20 73 63 72 6f 6c 6c 69 |n place"| scrolli|
|000012c0| 6e 67 0a 63 6f 6d 6d 61 | 6e 64 2e 1f 0a 28 64 65 |ng.comma|nd...(de|
|000012d0| 66 76 61 72 20 73 63 72 | 6f 6c 6c 2d 70 72 65 76 |fvar scr|oll-prev|
|000012e0| 69 6f 75 73 2d 77 69 6e | 64 6f 77 20 6e 69 6c 20 |ious-win|dow nil |
|000012f0| 28 23 24 20 2e 20 34 37 | 33 33 29 29 0a 23 40 39 |(#$ . 47|33)).#@9|
|00001300| 36 20 54 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |6 The nu|mber of |
|00001310| 77 69 6e 64 6f 77 20 6c | 69 6e 65 73 20 74 68 61 |window l|ines tha|
|00001320| 74 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 22 |t the pr|evious "|
|00001330| 69 6e 20 70 6c 61 63 65 | 22 20 73 63 72 6f 6c 6c |in place|" scroll|
|00001340| 69 6e 67 20 63 6f 6d 6d | 61 6e 64 0a 61 74 74 65 |ing comm|and.atte|
|00001350| 6d 70 74 65 64 20 74 6f | 20 73 63 72 6f 6c 6c 2e |mpted to| scroll.|
|00001360| 1f 0a 28 64 65 66 76 61 | 72 20 73 63 72 6f 6c 6c |..(defva|r scroll|
|00001370| 2d 70 72 65 76 69 6f 75 | 73 2d 6c 69 6e 65 73 20 |-previou|s-lines |
|00001380| 30 20 28 23 24 20 2e 20 | 34 38 36 36 29 29 0a 23 |0 (#$ . |4866)).#|
|00001390| 40 39 34 20 54 68 65 20 | 64 65 73 69 72 65 64 20 |@94 The |desired |
|000013a0| 68 6f 72 69 7a 6f 6e 74 | 61 6c 20 77 69 6e 64 6f |horizont|al windo|
|000013b0| 77 20 70 6f 73 69 74 69 | 6f 6e 20 66 6f 72 20 70 |w positi|on for p|
|000013c0| 6f 69 6e 74 2c 20 75 73 | 65 64 20 62 79 20 74 68 |oint, us|ed by th|
|000013d0| 65 20 22 69 6e 20 70 6c | 61 63 65 22 0a 73 63 72 |e "in pl|ace".scr|
|000013e0| 6f 6c 6c 69 6e 67 20 63 | 6f 6d 6d 61 6e 64 73 2e |olling c|ommands.|
|000013f0| 1f 0a 28 64 65 66 76 61 | 72 20 73 63 72 6f 6c 6c |..(defva|r scroll|
|00001400| 2d 67 6f 61 6c 2d 63 6f | 6c 75 6d 6e 20 30 20 28 |-goal-co|lumn 0 (|
|00001410| 23 24 20 2e 20 35 30 31 | 32 29 29 0a 23 40 36 35 |#$ . 501|2)).#@65|
|00001420| 20 54 68 65 20 76 61 6c | 75 65 20 6f 66 20 70 6f | The val|ue of po|
|00001430| 69 6e 74 20 62 65 66 6f | 72 65 20 70 6f 69 6e 74 |int befo|re point|
|00001440| 20 77 61 73 20 6d 6f 76 | 65 64 20 74 6f 20 61 20 | was mov|ed to a |
|00001450| 62 75 66 66 65 72 20 62 | 6f 75 6e 64 61 72 79 2e |buffer b|oundary.|
|00001460| 1f 0a 28 64 65 66 76 61 | 72 20 73 63 72 6f 6c 6c |..(defva|r scroll|
|00001470| 2d 62 6f 75 6e 64 61 72 | 79 2d 70 72 65 76 69 6f |-boundar|y-previo|
|00001480| 75 73 2d 70 6f 69 6e 74 | 20 6e 69 6c 20 28 23 24 |us-point| nil (#$|
|00001490| 20 2e 20 35 31 35 33 29 | 29 0a 23 40 37 34 20 54 | . 5153)|).#@74 T|
|000014a0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|000014b0| 65 73 20 74 68 61 74 20 | 70 6f 69 6e 74 20 6d 6f |es that |point mo|
|000014c0| 76 65 64 20 77 68 65 6e | 20 69 74 20 6d 6f 76 65 |ved when| it move|
|000014d0| 64 20 74 6f 20 61 20 62 | 75 66 66 65 72 20 62 6f |d to a b|uffer bo|
|000014e0| 75 6e 64 61 72 79 2e 1f | 0a 28 64 65 66 76 61 72 |undary..|.(defvar|
|000014f0| 20 73 63 72 6f 6c 6c 2d | 62 6f 75 6e 64 61 72 79 | scroll-|boundary|
|00001500| 2d 70 72 65 76 69 6f 75 | 73 2d 6c 69 6e 65 73 20 |-previou|s-lines |
|00001510| 30 20 28 23 24 20 2e 20 | 35 32 37 39 29 29 0a 23 |0 (#$ . |5279)).#|
|00001520| 40 31 39 30 20 54 68 65 | 20 76 61 6c 75 65 20 6f |@190 The| value o|
|00001530| 66 20 60 74 68 69 73 2d | 63 6f 6d 6d 61 6e 64 27 |f `this-|command'|
|00001540| 20 77 68 65 6e 20 61 6e | 20 22 69 6e 20 70 6c 61 | when an| "in pla|
|00001550| 63 65 22 20 73 63 72 6f | 6c 6c 69 6e 67 20 63 6f |ce" scro|lling co|
|00001560| 6d 6d 61 6e 64 20 73 69 | 67 6e 61 6c 6c 65 64 0a |mmand si|gnalled.|
|00001570| 61 20 62 75 66 66 65 72 | 20 62 6f 75 6e 64 61 72 |a buffer| boundar|
|00001580| 79 20 65 72 72 6f 72 2e | 20 20 54 68 69 73 20 69 |y error.| This i|
|00001590| 73 20 75 73 65 64 20 74 | 6f 20 64 65 63 69 64 65 |s used t|o decide|
|000015a0| 20 68 6f 77 20 73 75 62 | 73 65 71 75 65 6e 74 20 | how sub|sequent |
|000015b0| 73 63 72 6f 6c 6c 69 6e | 67 0a 63 6f 6d 6d 61 6e |scrollin|g.comman|
|000015c0| 64 73 20 73 68 6f 75 6c | 64 20 72 65 63 6f 76 65 |ds shoul|d recove|
|000015d0| 72 20 66 72 6f 6d 20 74 | 68 65 20 65 72 72 6f 72 |r from t|he error|
|000015e0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 73 63 72 6f 6c |...(defv|ar scrol|
|000015f0| 6c 2d 62 6f 75 6e 64 61 | 72 79 2d 65 72 72 6f 72 |l-bounda|ry-error|
|00001600| 2d 63 6f 6d 6d 61 6e 64 | 20 6e 69 6c 20 28 23 24 |-command| nil (#$|
|00001610| 20 2e 20 35 34 31 33 29 | 29 0a 23 40 31 38 31 20 | . 5413)|).#@181 |
|00001620| 54 68 65 20 76 61 6c 75 | 65 20 6f 66 20 70 6f 69 |The valu|e of poi|
|00001630| 6e 74 20 77 68 65 6e 20 | 61 6e 20 22 69 6e 20 70 |nt when |an "in p|
|00001640| 6c 61 63 65 22 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |lace" sc|rolling |
|00001650| 63 6f 6d 6d 61 6e 64 20 | 73 69 67 6e 61 6c 6c 65 |command |signalle|
|00001660| 64 20 61 20 62 75 66 66 | 65 72 0a 62 6f 75 6e 64 |d a buff|er.bound|
|00001670| 61 72 79 20 65 72 72 6f | 72 2e 20 20 54 68 69 73 |ary erro|r. This|
|00001680| 20 69 73 20 75 73 65 64 | 20 74 6f 20 64 65 63 69 | is used| to deci|
|00001690| 64 65 20 68 6f 77 20 73 | 75 62 73 65 71 75 65 6e |de how s|ubsequen|
|000016a0| 74 20 73 63 72 6f 6c 6c | 69 6e 67 20 63 6f 6d 6d |t scroll|ing comm|
|000016b0| 61 6e 64 73 0a 73 68 6f | 75 6c 64 20 72 65 63 6f |ands.sho|uld reco|
|000016c0| 76 65 72 20 66 72 6f 6d | 20 74 68 65 20 65 72 72 |ver from| the err|
|000016d0| 6f 72 2e 1f 0a 28 64 65 | 66 76 61 72 20 73 63 72 |or...(de|fvar scr|
|000016e0| 6f 6c 6c 2d 62 6f 75 6e | 64 61 72 79 2d 65 72 72 |oll-boun|dary-err|
|000016f0| 6f 72 2d 70 6f 69 6e 74 | 20 6e 69 6c 20 28 23 24 |or-point| nil (#$|
|00001700| 20 2e 20 35 36 36 34 29 | 29 0a 23 40 32 39 33 20 | . 5664)|).#@293 |
|00001710| 54 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 20 62 |The diff|erence b|
|00001720| 65 74 77 65 65 6e 20 74 | 68 65 20 6e 75 6d 62 65 |etween t|he numbe|
|00001730| 72 20 6f 66 20 6c 69 6e | 65 73 20 61 6e 20 22 69 |r of lin|es an "i|
|00001740| 6e 20 70 6c 61 63 65 22 | 20 73 63 72 6f 6c 6c 69 |n place"| scrolli|
|00001750| 6e 67 20 63 6f 6d 6d 61 | 6e 64 0a 74 72 69 65 64 |ng comma|nd.tried|
|00001760| 20 74 6f 20 73 63 72 6f | 6c 6c 20 61 20 77 69 6e | to scro|ll a win|
|00001770| 64 6f 77 20 61 6e 64 20 | 74 68 65 20 6e 75 6d 62 |dow and |the numb|
|00001780| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 74 68 61 74 |er of li|nes that|
|00001790| 20 74 68 65 20 77 69 6e | 64 6f 77 20 61 63 74 75 | the win|dow actu|
|000017a0| 61 6c 6c 79 0a 73 63 72 | 6f 6c 6c 65 64 2e 20 20 |ally.scr|olled. |
|000017b0| 54 68 69 73 20 64 69 66 | 66 65 72 65 6e 63 65 20 |This dif|ference |
|000017c0| 69 73 20 74 68 65 20 22 | 64 65 62 74 22 20 69 6e |is the "|debt" in|
|000017d0| 20 74 68 65 20 77 69 6e | 64 6f 77 27 73 20 73 74 | the win|dow's st|
|000017e0| 61 72 74 69 6e 67 20 70 | 6f 73 69 74 69 6f 6e 2e |arting p|osition.|
|000017f0| 0a 53 75 62 73 65 71 75 | 65 6e 74 20 22 69 6e 20 |.Subsequ|ent "in |
|00001800| 70 6c 61 63 65 22 20 73 | 63 72 6f 6c 6c 69 6e 67 |place" s|crolling|
|00001810| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 72 79 20 74 6f | command|s try to|
|00001820| 20 6d 61 6b 65 20 75 70 | 20 74 68 69 73 20 64 65 | make up| this de|
|00001830| 62 74 2e 1f 0a 28 64 65 | 66 76 61 72 20 73 63 72 |bt...(de|fvar scr|
|00001840| 6f 6c 6c 2d 77 69 6e 64 | 6f 77 2d 64 65 62 74 20 |oll-wind|ow-debt |
|00001850| 30 20 28 23 24 20 2e 20 | 35 39 30 34 29 29 0a 23 |0 (#$ . |5904)).#|
|00001860| 40 32 39 30 20 41 20 66 | 6c 61 67 2c 20 73 65 74 |@290 A f|lag, set|
|00001870| 20 77 68 65 6e 20 74 68 | 69 73 20 76 65 72 73 69 | when th|is versi|
|00001880| 6f 6e 20 6f 66 20 47 4e | 55 20 45 6d 61 63 73 20 |on of GN|U Emacs |
|00001890| 68 61 73 20 61 20 62 75 | 67 67 79 20 76 65 72 73 |has a bu|ggy vers|
|000018a0| 69 6f 6e 20 6f 66 20 74 | 68 65 0a 66 75 6e 63 74 |ion of t|he.funct|
|000018b0| 69 6f 6e 20 60 70 6f 73 | 2d 76 69 73 69 62 6c 65 |ion `pos|-visible|
|000018c0| 2d 69 6e 2d 77 69 6e 64 | 6f 77 2d 70 27 20 74 68 |-in-wind|ow-p' th|
|000018d0| 61 74 20 72 65 74 75 72 | 6e 73 20 60 6e 69 6c 27 |at retur|ns `nil'|
|000018e0| 20 77 68 65 6e 20 67 69 | 76 65 6e 20 60 28 70 6f | when gi|ven `(po|
|000018f0| 69 6e 74 2d 6d 61 78 29 | 27 0a 61 6e 64 20 60 28 |int-max)|'.and `(|
|00001900| 70 6f 69 6e 74 2d 6d 61 | 78 29 27 20 69 73 20 6f |point-ma|x)' is o|
|00001910| 6e 20 74 68 65 20 6c 61 | 73 74 20 6c 69 6e 65 20 |n the la|st line |
|00001920| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 2e 20 20 |of the w|indow. |
|00001930| 43 75 72 72 65 6e 74 6c | 79 2c 20 74 68 69 73 20 |Currentl|y, this |
|00001940| 66 6c 61 67 20 69 73 0a | 73 65 74 20 66 6f 72 20 |flag is.|set for |
|00001950| 61 6c 6c 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |all vers|ions of |
|00001960| 45 70 6f 63 68 20 34 20 | 61 6e 64 20 66 6f 72 20 |Epoch 4 |and for |
|00001970| 4c 75 63 69 64 20 47 4e | 55 20 45 6d 61 63 73 20 |Lucid GN|U Emacs |
|00001980| 31 39 2e 38 2e 1f 0a 28 | 64 65 66 63 6f 6e 73 74 |19.8...(|defconst|
|00001990| 20 73 63 72 6f 6c 6c 2d | 70 6f 73 2d 76 69 73 69 | scroll-|pos-visi|
|000019a0| 62 6c 65 2d 62 75 67 2d | 70 20 28 62 79 74 65 2d |ble-bug-|p (byte-|
|000019b0| 63 6f 64 65 20 22 c0 20 | 19 c2 8e c3 c4 21 ab 8a |code ". |.....!..|
|000019c0| c5 c6 0e 07 5c 22 ab 83 | c8 aa 8f c5 c9 0e 07 5c |....\"..|.......\|
|000019d0| 22 ad 88 c5 ca 0e 07 5c | 22 ad 81 c8 2a 87 22 20 |"......\|"...*." |
|000019e0| 5b 6d 61 74 63 68 2d 64 | 61 74 61 20 6f 6c 64 2d |[match-d|ata old-|
|000019f0| 6d 61 74 63 68 2d 64 61 | 74 61 20 28 28 73 74 6f |match-da|ta ((sto|
|00001a00| 72 65 2d 6d 61 74 63 68 | 2d 64 61 74 61 20 6f 6c |re-match|-data ol|
|00001a10| 64 2d 6d 61 74 63 68 2d | 64 61 74 61 29 29 20 62 |d-match-|data)) b|
|00001a20| 6f 75 6e 64 70 20 65 70 | 6f 63 68 3a 3a 76 65 72 |oundp ep|och::ver|
|00001a30| 73 69 6f 6e 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 |sion str|ing-matc|
|00001a40| 68 20 22 5c 5c 60 34 5c | 5c 2e 22 20 65 6d 61 63 |h "\\`4\|\." emac|
|00001a50| 73 2d 76 65 72 73 69 6f | 6e 20 74 20 22 4c 75 63 |s-versio|n t "Luc|
|00001a60| 69 64 22 20 22 5c 5c 60 | 31 39 5c 5c 2e 38 5c 5c |id" "\\`|19\\.8\\|
|00001a70| 2e 22 5d 20 33 29 20 28 | 23 24 20 2e 20 36 32 34 |."] 3) (|#$ . 624|
|00001a80| 35 29 29 0a 23 40 34 37 | 20 55 6e 63 6f 6e 64 69 |5)).#@47| Uncondi|
|00001a90| 74 69 6f 6e 61 6c 6c 79 | 20 74 75 72 6e 20 6f 6e |tionally| turn on|
|00001aa0| 20 73 63 72 6f 6c 6c 2d | 69 6e 2d 70 6c 61 63 65 | scroll-|in-place|
|00001ab0| 20 6d 6f 64 65 2e 1f 0a | 28 64 65 66 61 6c 69 61 | mode...|(defalia|
|00001ac0| 73 20 27 74 75 72 6e 2d | 6f 6e 2d 73 63 72 6f 6c |s 'turn-|on-scrol|
|00001ad0| 6c 2d 69 6e 2d 70 6c 61 | 63 65 20 23 5b 6e 69 6c |l-in-pla|ce #[nil|
|00001ae0| 20 22 c0 c1 21 c2 4c 87 | 22 20 5b 6d 61 6b 65 2d | "..!.L.|" [make-|
|00001af0| 6c 6f 63 61 6c 2d 76 61 | 72 69 61 62 6c 65 20 73 |local-va|riable s|
|00001b00| 63 72 6f 6c 6c 2d 69 6e | 2d 70 6c 61 63 65 20 74 |croll-in|-place t|
|00001b10| 5d 20 32 20 28 23 24 20 | 2e 20 36 37 39 33 29 5d |] 2 (#$ |. 6793)]|
|00001b20| 29 0a 23 40 34 37 20 55 | 6e 63 6f 6e 64 69 74 69 |).#@47 U|nconditi|
|00001b30| 6f 6e 61 6c 6c 79 20 74 | 75 72 6e 20 6f 6e 20 73 |onally t|urn on s|
|00001b40| 63 72 6f 6c 6c 2d 69 6e | 2d 70 6c 61 63 65 20 6d |croll-in|-place m|
|00001b50| 6f 64 65 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ode...(d|efalias |
|00001b60| 27 74 75 72 6e 2d 6f 66 | 66 2d 73 63 72 6f 6c 6c |'turn-of|f-scroll|
|00001b70| 2d 69 6e 2d 70 6c 61 63 | 65 20 23 5b 6e 69 6c 20 |-in-plac|e #[nil |
|00001b80| 22 c0 c1 21 c2 4c 87 22 | 20 5b 6d 61 6b 65 2d 6c |"..!.L."| [make-l|
|00001b90| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 20 73 63 |ocal-var|iable sc|
|00001ba0| 72 6f 6c 6c 2d 69 6e 2d | 70 6c 61 63 65 20 6e 69 |roll-in-|place ni|
|00001bb0| 6c 5d 20 32 20 28 23 24 | 20 2e 20 36 39 35 31 29 |l] 2 (#$| . 6951)|
|00001bc0| 5d 29 0a 23 40 36 39 37 | 20 43 68 6f 6f 73 65 20 |]).#@697| Choose |
|00001bd0| 74 68 65 20 77 69 6e 64 | 6f 77 20 74 6f 20 62 65 |the wind|ow to be|
|00001be0| 20 73 63 72 6f 6c 6c 65 | 64 20 62 79 20 74 68 65 | scrolle|d by the|
|00001bf0| 20 63 6f 6d 6d 61 6e 64 | 73 20 60 73 63 72 6f 6c | command|s `scrol|
|00001c00| 6c 2d 64 6f 77 6e 27 2c | 20 60 73 63 72 6f 6c 6c |l-down',| `scroll|
|00001c10| 2d 75 70 27 2c 0a 60 73 | 63 72 6f 6c 6c 2d 64 6f |-up',.`s|croll-do|
|00001c20| 77 6e 2d 69 6e 2d 70 6c | 61 63 65 27 2c 20 61 6e |wn-in-pl|ace', an|
|00001c30| 64 20 60 73 63 72 6f 6c | 6c 2d 75 70 2d 69 6e 2d |d `scrol|l-up-in-|
|00001c40| 70 6c 61 63 65 27 2e 0a | 0a 54 68 65 20 72 75 6c |place'..|.The rul|
|00001c50| 65 73 20 61 72 65 20 73 | 69 6d 70 6c 65 2e 20 20 |es are s|imple. |
|00001c60| 49 66 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 20 |If the s|elected |
|00001c70| 77 69 6e 64 6f 77 20 69 | 73 20 6e 6f 74 20 61 20 |window i|s not a |
|00001c80| 6d 69 6e 69 62 75 66 66 | 65 72 20 77 69 6e 64 6f |minibuff|er windo|
|00001c90| 77 2c 20 74 68 65 6e 0a | 6a 75 73 74 20 63 68 6f |w, then.|just cho|
|00001ca0| 6f 73 65 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 |ose the |selected|
|00001cb0| 20 77 69 6e 64 6f 77 2e | 0a 0a 48 6f 77 65 76 65 | window.|..Howeve|
|00001cc0| 72 2c 20 77 68 65 6e 20 | 61 20 6d 69 6e 69 62 75 |r, when |a minibu|
|00001cd0| 66 66 65 72 20 77 69 6e | 64 6f 77 20 69 73 20 73 |ffer win|dow is s|
|00001ce0| 65 6c 65 63 74 65 64 2c | 20 6c 6f 6f 6b 20 66 69 |elected,| look fi|
|00001cf0| 72 73 74 20 66 6f 72 20 | 74 68 65 20 60 6d 69 6e |rst for |the `min|
|00001d00| 69 62 75 66 66 65 72 2d | 0a 73 63 72 6f 6c 6c 2d |ibuffer-|.scroll-|
|00001d10| 77 69 6e 64 6f 77 27 2e | 20 20 54 68 65 20 60 6d |window'.| The `m|
|00001d20| 69 6e 69 62 75 66 66 65 | 72 2d 73 63 72 6f 6c 6c |inibuffe|r-scroll|
|00001d30| 2d 77 69 6e 64 6f 77 27 | 20 69 73 20 75 73 75 61 |-window'| is usua|
|00001d40| 6c 6c 79 20 74 68 65 20 | 77 69 6e 64 6f 77 20 74 |lly the |window t|
|00001d50| 68 61 74 0a 64 69 73 70 | 6c 61 79 73 20 63 6f 6d |hat.disp|lays com|
|00001d60| 70 6c 65 74 69 6f 6e 73 | 2e 20 20 49 66 20 69 74 |pletions|. If it|
|00001d70| 20 65 78 69 73 74 73 2c | 20 63 68 6f 6f 73 65 20 | exists,| choose |
|00001d80| 69 74 3b 20 6f 74 68 65 | 72 77 69 73 65 20 63 68 |it; othe|rwise ch|
|00001d90| 6f 6f 73 65 20 74 68 65 | 20 6e 65 78 74 0a 77 69 |oose the| next.wi|
|00001da0| 6e 64 6f 77 20 61 66 74 | 65 72 20 74 68 65 20 73 |ndow aft|er the s|
|00001db0| 65 6c 65 63 74 65 64 20 | 77 69 6e 64 6f 77 20 69 |elected |window i|
|00001dc0| 6e 20 74 68 65 20 63 61 | 6e 6f 6e 69 63 61 6c 20 |n the ca|nonical |
|00001dd0| 6f 72 64 65 72 69 6e 67 | 20 6f 66 20 77 69 6e 64 |ordering| of wind|
|00001de0| 6f 77 73 2e 20 20 54 68 | 65 0a 6e 65 78 74 20 77 |ows. Th|e.next w|
|00001df0| 69 6e 64 6f 77 20 69 73 | 20 67 65 6e 65 72 61 6c |indow is| general|
|00001e00| 6c 79 20 74 68 65 20 6f | 6e 65 20 62 65 6c 6f 77 |ly the o|ne below|
|00001e10| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 77 69 | the sel|ected wi|
|00001e20| 6e 64 6f 77 2c 20 6f 72 | 20 74 68 65 20 6f 6e 65 |ndow, or| the one|
|00001e30| 20 61 74 20 74 68 65 0a | 74 6f 70 20 6f 66 20 74 | at the.|top of t|
|00001e40| 68 65 20 73 63 72 65 65 | 6e 20 69 66 20 74 68 65 |he scree|n if the|
|00001e50| 20 73 65 6c 65 63 74 65 | 64 20 77 69 6e 64 6f 77 | selecte|d window|
|00001e60| 20 69 73 20 61 74 20 74 | 68 65 20 62 6f 74 74 6f | is at t|he botto|
|00001e70| 6d 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 2e |m of the| screen.|
|00001e80| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 72 |..(defal|ias 'scr|
|00001e90| 6f 6c 6c 2d 63 68 6f 6f | 73 65 2d 77 69 6e 64 6f |oll-choo|se-windo|
|00001ea0| 77 20 23 5b 6e 69 6c 20 | 22 c0 20 18 c1 08 21 ab |w #[nil |". ...!.|
|00001eb0| 8d c2 0b 21 ab 83 0b aa | 86 c4 08 21 aa 81 08 29 |...!....|...!...)|
|00001ec0| 87 22 20 5b 73 65 6c 65 | 63 74 65 64 2d 77 69 6e |." [sele|cted-win|
|00001ed0| 64 6f 77 20 77 69 6e 64 | 6f 77 2d 6d 69 6e 69 62 |dow wind|ow-minib|
|00001ee0| 75 66 66 65 72 2d 70 20 | 77 69 6e 64 6f 77 2d 6c |uffer-p |window-l|
|00001ef0| 69 76 65 2d 70 20 6d 69 | 6e 69 62 75 66 66 65 72 |ive-p mi|nibuffer|
|00001f00| 2d 73 63 72 6f 6c 6c 2d | 77 69 6e 64 6f 77 20 6e |-scroll-|window n|
|00001f10| 65 78 74 2d 77 69 6e 64 | 6f 77 5d 20 32 20 28 23 |ext-wind|ow] 2 (#|
|00001f20| 24 20 2e 20 37 31 31 33 | 29 5d 29 0a 23 40 31 31 |$ . 7113|)]).#@11|
|00001f30| 32 35 20 43 68 6f 6f 73 | 65 20 74 68 65 20 77 69 |25 Choos|e the wi|
|00001f40| 6e 64 6f 77 20 74 6f 20 | 62 65 20 73 63 72 6f 6c |ndow to |be scrol|
|00001f50| 6c 65 64 20 62 79 20 74 | 68 65 20 63 6f 6d 6d 61 |led by t|he comma|
|00001f60| 6e 64 73 20 60 73 63 72 | 6f 6c 6c 2d 6f 74 68 65 |nds `scr|oll-othe|
|00001f70| 72 2d 77 69 6e 64 6f 77 | 2d 64 6f 77 6e 27 2c 0a |r-window|-down',.|
|00001f80| 60 73 63 72 6f 6c 6c 2d | 6f 74 68 65 72 2d 77 69 |`scroll-|other-wi|
|00001f90| 6e 64 6f 77 27 2c 20 60 | 73 63 72 6f 6c 6c 2d 6f |ndow', `|scroll-o|
|00001fa0| 74 68 65 72 2d 77 69 6e | 64 6f 77 2d 64 6f 77 6e |ther-win|dow-down|
|00001fb0| 2d 69 6e 2d 70 6c 61 63 | 65 27 2c 20 61 6e 64 20 |-in-plac|e', and |
|00001fc0| 60 73 63 72 6f 6c 6c 2d | 6f 74 68 65 72 2d 0a 77 |`scroll-|other-.w|
|00001fd0| 69 6e 64 6f 77 2d 69 6e | 2d 70 6c 61 63 65 27 2e |indow-in|-place'.|
|00001fe0| 0a 0a 54 68 65 20 72 75 | 6c 65 73 20 61 72 65 20 |..The ru|les are |
|00001ff0| 74 68 65 73 65 2e 20 20 | 49 66 20 74 68 65 20 73 |these. |If the s|
|00002000| 65 6c 65 63 74 65 64 20 | 77 69 6e 64 6f 77 20 69 |elected |window i|
|00002010| 73 20 6e 6f 74 20 61 20 | 6d 69 6e 69 62 75 66 66 |s not a |minibuff|
|00002020| 65 72 20 77 69 6e 64 6f | 77 2c 20 74 68 65 6e 0a |er windo|w, then.|
|00002030| 63 68 6f 6f 73 65 20 65 | 69 74 68 65 72 3a 0a 0a |choose e|ither:..|
|00002040| 20 20 2b 20 61 20 77 69 | 6e 64 6f 77 20 74 68 61 | + a wi|ndow tha|
|00002050| 74 20 64 69 73 70 6c 61 | 79 73 20 74 68 65 20 60 |t displa|ys the `|
|00002060| 6f 74 68 65 72 2d 77 69 | 6e 64 6f 77 2d 73 63 72 |other-wi|ndow-scr|
|00002070| 6f 6c 6c 2d 62 75 66 66 | 65 72 27 2c 20 69 66 20 |oll-buff|er', if |
|00002080| 74 68 61 74 20 62 75 66 | 66 65 72 0a 20 20 20 20 |that buf|fer. |
|00002090| 65 78 69 73 74 73 2e 20 | 20 4e 6f 74 65 2c 20 74 |exists. | Note, t|
|000020a0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 6c |his func|tion wil|
|000020b0| 6c 20 64 69 73 70 6c 61 | 79 20 74 68 61 74 20 62 |l displa|y that b|
|000020c0| 75 66 66 65 72 20 69 66 | 20 6e 65 63 65 73 73 61 |uffer if| necessa|
|000020d0| 72 79 2e 0a 0a 20 20 2b | 20 74 68 65 20 6e 65 78 |ry... +| the nex|
|000020e0| 74 20 77 69 6e 64 6f 77 | 20 61 66 74 65 72 20 74 |t window| after t|
|000020f0| 68 65 20 73 65 6c 65 63 | 74 65 64 20 77 69 6e 64 |he selec|ted wind|
|00002100| 6f 77 20 69 6e 20 74 68 | 65 20 63 61 6e 6f 6e 69 |ow in th|e canoni|
|00002110| 63 61 6c 20 6f 72 64 65 | 72 69 6e 67 20 6f 66 0a |cal orde|ring of.|
|00002120| 20 20 20 20 77 69 6e 64 | 6f 77 73 2e 20 20 54 68 | wind|ows. Th|
|00002130| 65 20 6e 65 78 74 20 77 | 69 6e 64 6f 77 20 69 73 |e next w|indow is|
|00002140| 20 67 65 6e 65 72 61 6c | 6c 79 20 74 68 65 20 6f | general|ly the o|
|00002150| 6e 65 20 62 65 6c 6f 77 | 20 74 68 65 20 73 65 6c |ne below| the sel|
|00002160| 65 63 74 65 64 20 77 69 | 6e 64 6f 77 2c 0a 20 20 |ected wi|ndow,. |
|00002170| 20 20 6f 72 20 74 68 65 | 20 6f 6e 65 20 61 74 20 | or the| one at |
|00002180| 74 68 65 20 74 6f 70 20 | 6f 66 20 74 68 65 20 73 |the top |of the s|
|00002190| 63 72 65 65 6e 20 69 66 | 20 74 68 65 20 73 65 6c |creen if| the sel|
|000021a0| 65 63 74 65 64 20 77 69 | 6e 64 6f 77 20 69 73 20 |ected wi|ndow is |
|000021b0| 61 74 20 74 68 65 20 62 | 6f 74 74 6f 6d 0a 20 20 |at the b|ottom. |
|000021c0| 20 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 2e | of the| screen.|
|000021d0| 0a 0a 48 6f 77 65 76 65 | 72 2c 20 77 68 65 6e 20 |..Howeve|r, when |
|000021e0| 61 20 6d 69 6e 69 62 75 | 66 66 65 72 20 77 69 6e |a minibu|ffer win|
|000021f0| 64 6f 77 20 69 73 20 73 | 65 6c 65 63 74 65 64 2c |dow is s|elected,|
|00002200| 20 6c 6f 6f 6b 20 66 69 | 72 73 74 20 66 6f 72 20 | look fi|rst for |
|00002210| 74 68 65 20 60 6d 69 6e | 69 62 75 66 66 65 72 2d |the `min|ibuffer-|
|00002220| 0a 73 63 72 6f 6c 6c 2d | 77 69 6e 64 6f 77 27 2e |.scroll-|window'.|
|00002230| 20 20 54 68 65 20 60 6d | 69 6e 69 62 75 66 66 65 | The `m|inibuffe|
|00002240| 72 2d 73 63 72 6f 6c 6c | 2d 77 69 6e 64 6f 77 27 |r-scroll|-window'|
|00002250| 20 69 73 20 75 73 75 61 | 6c 6c 79 20 74 68 65 20 | is usua|lly the |
|00002260| 77 69 6e 64 6f 77 20 74 | 68 61 74 0a 64 69 73 70 |window t|hat.disp|
|00002270| 6c 61 79 73 20 63 6f 6d | 70 6c 65 74 69 6f 6e 73 |lays com|pletions|
|00002280| 2e 20 20 49 66 20 69 74 | 20 65 78 69 73 74 73 2c |. If it| exists,|
|00002290| 20 63 68 6f 6f 73 65 20 | 69 74 3b 20 6f 74 68 65 | choose |it; othe|
|000022a0| 72 77 69 73 65 20 63 68 | 6f 6f 73 65 20 74 68 65 |rwise ch|oose the|
|000022b0| 20 77 69 6e 64 6f 77 20 | 74 6f 0a 62 65 20 73 63 | window |to.be sc|
|000022c0| 72 6f 6c 6c 65 64 20 61 | 73 20 64 65 73 63 72 69 |rolled a|s descri|
|000022d0| 62 65 64 20 61 62 6f 76 | 65 20 28 60 6f 74 68 65 |bed abov|e (`othe|
|000022e0| 72 2d 77 69 6e 64 6f 77 | 2d 73 63 72 6f 6c 6c 2d |r-window|-scroll-|
|000022f0| 62 75 66 66 65 72 27 20 | 6f 72 20 6e 65 78 74 20 |buffer' |or next |
|00002300| 77 69 6e 64 6f 77 29 2e | 0a 0a 54 68 69 73 20 66 |window).|..This f|
|00002310| 75 6e 63 74 69 6f 6e 20 | 69 73 20 65 73 73 65 6e |unction |is essen|
|00002320| 74 69 61 6c 6c 79 20 61 | 20 4c 69 73 70 20 76 65 |tially a| Lisp ve|
|00002330| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 66 75 6e |rsion of| the fun|
|00002340| 63 74 69 6f 6e 20 60 6f | 74 68 65 72 2d 77 69 6e |ction `o|ther-win|
|00002350| 64 6f 77 2d 66 6f 72 2d | 0a 73 63 72 6f 6c 6c 69 |dow-for-|.scrolli|
|00002360| 6e 67 27 20 77 68 69 63 | 68 20 66 69 72 73 74 20 |ng' whic|h first |
|00002370| 61 70 70 65 61 72 65 64 | 20 69 6e 20 74 68 65 20 |appeared| in the |
|00002380| 46 53 46 27 73 20 47 4e | 55 20 45 6d 61 63 73 20 |FSF's GN|U Emacs |
|00002390| 31 39 2e 32 36 2e 1f 0a | 28 64 65 66 61 6c 69 61 |19.26...|(defalia|
|000023a0| 73 20 27 73 63 72 6f 6c | 6c 2d 63 68 6f 6f 73 65 |s 'scrol|l-choose|
|000023b0| 2d 6f 74 68 65 72 2d 77 | 69 6e 64 6f 77 20 23 5b |-other-w|indow #[|
|000023c0| 6e 69 6c 20 22 c0 19 c2 | 20 1a c0 1b c4 5c 6e 21 |nil "...| ....\n!|
|000023d0| ab 8c c5 0e 06 21 ab 86 | c7 11 0e 06 aa b4 c8 c9 |.....!..|........|
|000023e0| 21 ab 9b ca 0e 09 21 ab | 95 cb 0e 09 21 ab 8f c7 |!.....!.|....!...|
|000023f0| 11 cc 0e 09 21 ae 9b cd | 0e 09 c7 5c 22 aa 94 ce |....!...|...\"...|
|00002400| 5c 6e 21 89 1e 0e 5c 6e | 61 3f ad 82 0e 0e 29 ae |\n!...\n|a?....).|
|00002410| 84 c0 cf d0 8f 13 09 ac | 89 5c 6e 0b 61 ab 84 d1 |........|.\n.a...|
|00002420| d2 21 88 0b 2b 87 22 20 | 5b 6e 69 6c 20 6e 6f 2d |.!..+." |[nil no-|
|00002430| 65 72 72 6f 72 20 73 65 | 6c 65 63 74 65 64 2d 77 |error se|lected-w|
|00002440| 69 6e 64 6f 77 20 6f 74 | 68 65 72 2d 77 69 6e 64 |indow ot|her-wind|
|00002450| 6f 77 20 77 69 6e 64 6f | 77 2d 6d 69 6e 69 62 75 |ow windo|w-minibu|
|00002460| 66 66 65 72 2d 70 20 77 | 69 6e 64 6f 77 2d 6c 69 |ffer-p w|indow-li|
|00002470| 76 65 2d 70 20 6d 69 6e | 69 62 75 66 66 65 72 2d |ve-p min|ibuffer-|
|00002480| 73 63 72 6f 6c 6c 2d 77 | 69 6e 64 6f 77 20 74 20 |scroll-w|indow t |
|00002490| 62 6f 75 6e 64 70 20 6f | 74 68 65 72 2d 77 69 6e |boundp o|ther-win|
|000024a0| 64 6f 77 2d 73 63 72 6f | 6c 6c 2d 62 75 66 66 65 |dow-scro|ll-buffe|
|000024b0| 72 20 62 75 66 66 65 72 | 70 20 62 75 66 66 65 72 |r buffer|p buffer|
|000024c0| 2d 6e 61 6d 65 20 67 65 | 74 2d 62 75 66 66 65 72 |-name ge|t-buffer|
|000024d0| 2d 77 69 6e 64 6f 77 20 | 64 69 73 70 6c 61 79 2d |-window |display-|
|000024e0| 62 75 66 66 65 72 20 6e | 65 78 74 2d 77 69 6e 64 |buffer n|ext-wind|
|000024f0| 6f 77 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |ow (byte|-code ".|
|00002500| 09 c2 c3 23 89 1c 09 61 | ac 8e c5 0c 21 ac 89 c0 |...#...a|....!...|
|00002510| 0c c2 c3 23 89 14 aa 6e | 0c 29 87 22 20 5b 6e 65 |...#...n|.)." [ne|
|00002520| 78 74 2d 77 69 6e 64 6f | 77 20 73 65 6c 65 63 74 |xt-windo|w select|
|00002530| 65 64 2d 77 69 6e 64 6f | 77 20 6e 69 6c 20 74 20 |ed-windo|w nil t |
|00002540| 74 68 69 73 2d 77 69 6e | 64 6f 77 20 73 63 72 6f |this-win|dow scro|
|00002550| 6c 6c 2d 63 68 6f 6f 73 | 65 2d 77 69 6e 64 6f 77 |ll-choos|e-window|
|00002560| 2d 66 72 61 6d 65 2d 76 | 69 73 69 62 6c 65 2d 70 |-frame-v|isible-p|
|00002570| 5d 20 35 29 20 28 28 77 | 72 6f 6e 67 2d 6e 75 6d |] 5) ((w|rong-num|
|00002580| 62 65 72 2d 6f 66 2d 61 | 72 67 75 6d 65 6e 74 73 |ber-of-a|rguments|
|00002590| 20 73 65 6c 65 63 74 65 | 64 2d 77 69 6e 64 6f 77 | selecte|d-window|
|000025a0| 29 29 20 65 72 72 6f 72 | 20 22 54 68 65 72 65 20 |)) error| "There |
|000025b0| 69 73 20 6e 6f 20 6f 74 | 68 65 72 20 77 69 6e 64 |is no ot|her wind|
|000025c0| 6f 77 2e 22 5d 20 34 20 | 28 23 24 20 2e 20 37 39 |ow."] 4 |(#$ . 79|
|000025d0| 38 37 29 5d 29 0a 23 40 | 36 36 20 52 65 74 75 72 |87)]).#@|66 Retur|
|000025e0| 6e 20 61 20 74 72 75 65 | 20 76 61 6c 75 65 20 69 |n a true| value i|
|000025f0| 66 20 74 68 65 20 66 72 | 61 6d 65 20 6f 66 20 74 |f the fr|ame of t|
|00002600| 68 65 20 67 69 76 65 6e | 20 57 49 4e 44 4f 57 20 |he given| WINDOW |
|00002610| 69 73 20 76 69 73 69 62 | 6c 65 2e 1f 0a 28 64 65 |is visib|le...(de|
|00002620| 66 61 6c 69 61 73 20 27 | 73 63 72 6f 6c 6c 2d 63 |falias '|scroll-c|
|00002630| 68 6f 6f 73 65 2d 77 69 | 6e 64 6f 77 2d 66 72 61 |hoose-wi|ndow-fra|
|00002640| 6d 65 2d 76 69 73 69 62 | 6c 65 2d 70 20 23 5b 28 |me-visib|le-p #[(|
|00002650| 77 69 6e 64 6f 77 29 20 | 22 c0 c1 21 ab 88 c2 c1 |window) |"..!....|
|00002660| 0b 21 21 c4 61 87 c4 87 | 22 20 5b 66 62 6f 75 6e |.!!.a...|" [fboun|
|00002670| 64 70 20 77 69 6e 64 6f | 77 2d 66 72 61 6d 65 20 |dp windo|w-frame |
|00002680| 66 72 61 6d 65 2d 76 69 | 73 69 62 6c 65 2d 70 20 |frame-vi|sible-p |
|00002690| 77 69 6e 64 6f 77 20 74 | 5d 20 33 20 28 23 24 20 |window t|] 3 (#$ |
|000026a0| 2e 20 39 36 39 31 29 5d | 29 0a 23 40 31 34 30 31 |. 9691)]|).#@1401|
|000026b0| 20 53 63 72 6f 6c 6c 20 | 74 68 65 20 74 65 78 74 | Scroll |the text|
|000026c0| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|000026d0| 77 69 6e 64 6f 77 20 64 | 6f 77 6e 77 61 72 64 20 |window d|ownward |
|000026e0| 62 79 20 4c 49 4e 45 53 | 20 6c 69 6e 65 73 2c 20 |by LINES| lines, |
|000026f0| 6c 65 61 76 69 6e 67 20 | 70 6f 69 6e 74 0a 61 73 |leaving |point.as|
|00002700| 20 63 6c 6f 73 65 20 61 | 73 20 70 6f 73 73 69 62 | close a|s possib|
|00002710| 6c 65 20 74 6f 20 69 74 | 73 20 63 75 72 72 65 6e |le to it|s curren|
|00002720| 74 20 77 69 6e 64 6f 77 | 20 70 6f 73 69 74 69 6f |t window| positio|
|00002730| 6e 20 28 77 69 6e 64 6f | 77 20 6c 69 6e 65 20 61 |n (windo|w line a|
|00002740| 6e 64 20 63 6f 6c 75 6d | 6e 29 2e 0a 49 6e 20 6f |nd colum|n)..In o|
|00002750| 74 68 65 72 20 77 6f 72 | 64 73 2c 20 70 6f 69 6e |ther wor|ds, poin|
|00002760| 74 20 69 73 20 6c 65 66 | 74 20 22 69 6e 20 70 6c |t is lef|t "in pl|
|00002770| 61 63 65 22 20 77 69 74 | 68 69 6e 20 74 68 65 20 |ace" wit|hin the |
|00002780| 77 69 6e 64 6f 77 2e 20 | 20 41 73 20 61 20 73 70 |window. | As a sp|
|00002790| 65 63 69 61 6c 0a 63 61 | 73 65 2c 20 77 68 65 6e |ecial.ca|se, when|
|000027a0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 77 69 6e | the cur|rent win|
|000027b0| 64 6f 77 20 69 73 20 61 | 20 6d 69 6e 69 62 75 66 |dow is a| minibuf|
|000027c0| 66 65 72 20 77 69 6e 64 | 6f 77 2c 20 74 68 69 73 |fer wind|ow, this|
|000027d0| 20 63 6f 6d 6d 61 6e 64 | 20 73 63 72 6f 6c 6c 73 | command| scrolls|
|000027e0| 20 74 68 65 0a 60 6d 69 | 6e 69 62 75 66 66 65 72 | the.`mi|nibuffer|
|000027f0| 2d 73 63 72 6f 6c 6c 2d | 77 69 6e 64 6f 77 27 20 |-scroll-|window' |
|00002800| 28 77 68 69 63 68 20 69 | 73 20 75 73 75 61 6c 6c |(which i|s usuall|
|00002810| 79 20 74 68 65 20 6c 69 | 73 74 20 6f 66 20 63 6f |y the li|st of co|
|00002820| 6d 70 6c 65 74 69 6f 6e | 73 29 20 69 66 20 69 74 |mpletion|s) if it|
|00002830| 0a 65 78 69 73 74 73 2c | 20 6f 72 20 6f 74 68 65 |.exists,| or othe|
|00002840| 72 77 69 73 65 20 74 68 | 65 20 6e 65 78 74 20 77 |rwise th|e next w|
|00002850| 69 6e 64 6f 77 20 69 6e | 20 74 68 65 20 63 61 6e |indow in| the can|
|00002860| 6f 6e 69 63 61 6c 20 6f | 72 64 65 72 69 6e 67 20 |onical o|rdering |
|00002870| 6f 66 20 77 69 6e 64 6f | 77 73 2e 0a 0a 49 66 20 |of windo|ws...If |
|00002880| 74 68 65 20 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |the opti|onal arg|
|00002890| 75 6d 65 6e 74 20 4c 49 | 4e 45 53 20 69 73 20 60 |ument LI|NES is `|
|000028a0| 6e 69 6c 27 2c 20 73 63 | 72 6f 6c 6c 20 74 68 65 |nil', sc|roll the|
|000028b0| 20 77 69 6e 64 6f 77 20 | 62 79 20 74 68 65 20 73 | window |by the s|
|000028c0| 61 6d 65 20 61 6d 6f 75 | 6e 74 0a 69 74 20 77 61 |ame amou|nt.it wa|
|000028d0| 73 20 6d 6f 76 65 64 20 | 62 79 20 74 68 65 20 69 |s moved |by the i|
|000028e0| 6d 6d 65 64 69 61 74 65 | 6c 79 20 70 72 65 76 69 |mmediate|ly previ|
|000028f0| 6f 75 73 20 22 69 6e 20 | 70 6c 61 63 65 22 20 73 |ous "in |place" s|
|00002900| 63 72 6f 6c 6c 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 |crolling| command|
|00002910| 2c 20 6f 72 20 62 79 0a | 74 68 65 20 76 61 6c 75 |, or by.|the valu|
|00002920| 65 20 6f 66 20 74 68 65 | 20 76 61 72 69 61 62 6c |e of the| variabl|
|00002930| 65 20 60 73 63 72 6f 6c | 6c 2d 64 65 66 61 75 6c |e `scrol|l-defaul|
|00002940| 74 2d 6c 69 6e 65 73 27 | 20 28 75 73 75 61 6c 6c |t-lines'| (usuall|
|00002950| 79 20 61 6c 6d 6f 73 74 | 20 61 20 77 69 6e 64 6f |y almost| a windo|
|00002960| 77 66 75 6c 29 0a 69 66 | 20 74 68 65 20 70 72 65 |wful).if| the pre|
|00002970| 76 69 6f 75 73 20 63 6f | 6d 6d 61 6e 64 20 77 61 |vious co|mmand wa|
|00002980| 73 20 6e 6f 74 20 61 6e | 20 22 69 6e 20 70 6c 61 |s not an| "in pla|
|00002990| 63 65 22 20 73 63 72 6f | 6c 6c 69 6e 67 20 63 6f |ce" scro|lling co|
|000029a0| 6d 6d 61 6e 64 20 28 6f | 72 20 77 68 65 6e 20 74 |mmand (o|r when t|
|000029b0| 68 61 74 0a 70 72 65 76 | 69 6f 75 73 20 63 6f 6d |hat.prev|ious com|
|000029c0| 6d 61 6e 64 20 73 63 72 | 6f 6c 6c 65 64 20 73 6f |mand scr|olled so|
|000029d0| 6d 65 20 6f 74 68 65 72 | 20 77 69 6e 64 6f 77 2c |me other| window,|
|000029e0| 20 6f 72 20 77 68 65 6e | 20 6f 74 68 65 72 20 63 | or when| other c|
|000029f0| 69 72 63 75 6d 73 74 61 | 6e 63 65 73 0a 70 72 65 |ircumsta|nces.pre|
|00002a00| 76 65 6e 74 20 74 68 65 | 20 70 72 65 76 69 6f 75 |vent the| previou|
|00002a10| 73 20 73 63 72 6f 6c 6c | 69 6e 67 20 64 69 73 74 |s scroll|ing dist|
|00002a20| 61 6e 63 65 20 66 72 6f | 6d 20 62 65 69 6e 67 20 |ance fro|m being |
|00002a30| 75 73 65 64 29 2e 20 20 | 49 66 20 4c 49 4e 45 53 |used). |If LINES|
|00002a40| 20 69 73 20 74 68 65 0a | 73 79 6d 62 6f 6c 20 60 | is the.|symbol `|
|00002a50| 2d 27 2c 20 74 68 65 6e | 20 74 68 65 20 73 63 72 |-', then| the scr|
|00002a60| 6f 6c 6c 69 6e 67 20 64 | 69 73 74 61 6e 63 65 20 |olling d|istance |
|00002a70| 69 73 20 64 65 74 65 72 | 6d 69 6e 65 64 20 61 73 |is deter|mined as|
|00002a80| 20 69 66 20 4c 49 4e 45 | 53 20 68 61 64 20 62 65 | if LINE|S had be|
|00002a90| 65 6e 0a 60 6e 69 6c 27 | 20 61 6e 64 20 74 68 65 |en.`nil'| and the|
|00002aa0| 6e 20 74 68 61 74 20 64 | 69 73 74 61 6e 63 65 20 |n that d|istance |
|00002ab0| 69 73 20 6d 75 6c 74 69 | 70 6c 69 65 64 20 62 79 |is multi|plied by|
|00002ac0| 20 2d 31 2e 0a 0a 49 66 | 20 74 68 65 20 77 69 6e | -1...If| the win|
|00002ad0| 64 6f 77 20 63 61 6e 6e | 6f 74 20 62 65 20 73 63 |dow cann|ot be sc|
|00002ae0| 72 6f 6c 6c 65 64 20 62 | 79 20 74 68 65 20 66 75 |rolled b|y the fu|
|00002af0| 6c 6c 20 64 69 73 74 61 | 6e 63 65 2c 20 70 6f 69 |ll dista|nce, poi|
|00002b00| 6e 74 20 69 73 20 61 6c | 6c 6f 77 65 64 20 74 6f |nt is al|lowed to|
|00002b10| 0a 73 74 72 61 79 20 66 | 72 6f 6d 20 69 74 73 20 |.stray f|rom its |
|00002b20| 69 6e 69 74 69 61 6c 20 | 70 6f 73 69 74 69 6f 6e |initial |position|
|00002b30| 20 73 6f 20 74 68 61 74 | 20 69 74 20 63 61 6e 20 | so that| it can |
|00002b40| 6d 6f 76 65 20 74 68 65 | 20 66 75 6c 6c 20 6e 75 |move the| full nu|
|00002b50| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 2e 0a 49 |mber of |lines..I|
|00002b60| 66 20 70 6f 69 6e 74 20 | 63 61 6e 6e 6f 74 20 6d |f point |cannot m|
|00002b70| 6f 76 65 20 74 68 65 20 | 66 75 6c 6c 20 6e 75 6d |ove the |full num|
|00002b80| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 2c 20 70 6f |ber of l|ines, po|
|00002b90| 69 6e 74 20 69 73 20 6d | 6f 76 65 64 20 74 6f 20 |int is m|oved to |
|00002ba0| 74 68 65 20 62 75 66 66 | 65 72 0a 62 6f 75 6e 64 |the buff|er.bound|
|00002bb0| 61 72 79 2e 20 20 41 6e | 79 20 69 6d 6d 65 64 69 |ary. An|y immedi|
|00002bc0| 61 74 65 6c 79 20 73 75 | 62 73 65 71 75 65 6e 74 |ately su|bsequent|
|00002bd0| 20 22 69 6e 20 70 6c 61 | 63 65 22 20 73 63 72 6f | "in pla|ce" scro|
|00002be0| 6c 6c 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 20 77 |lling co|mmands w|
|00002bf0| 69 6c 6c 20 74 72 79 0a | 74 6f 20 72 65 73 74 6f |ill try.|to resto|
|00002c00| 72 65 20 70 6f 69 6e 74 | 20 74 6f 20 69 74 73 20 |re point| to its |
|00002c10| 69 6e 69 74 69 61 6c 20 | 77 69 6e 64 6f 77 20 70 |initial |window p|
|00002c20| 6f 73 69 74 69 6f 6e 2e | 1f 0a 28 64 65 66 61 6c |osition.|..(defal|
|00002c30| 69 61 73 20 27 73 63 72 | 6f 6c 6c 2d 64 6f 77 6e |ias 'scr|oll-down|
|00002c40| 2d 69 6e 2d 70 6c 61 63 | 65 20 23 5b 28 26 6f 70 |-in-plac|e #[(&op|
|00002c50| 74 69 6f 6e 61 6c 20 6c | 69 6e 65 73 29 20 22 c0 |tional l|ines) ".|
|00002c60| c1 20 5c 6e c3 23 87 22 | 20 5b 73 63 72 6f 6c 6c |. \n.#."| [scroll|
|00002c70| 2d 77 69 6e 64 6f 77 2d | 69 6e 2d 70 6c 61 63 65 |-window-|in-place|
|00002c80| 20 73 63 72 6f 6c 6c 2d | 63 68 6f 6f 73 65 2d 77 | scroll-|choose-w|
|00002c90| 69 6e 64 6f 77 20 6c 69 | 6e 65 73 20 2d 31 5d 20 |indow li|nes -1] |
|00002ca0| 34 20 28 23 24 20 2e 20 | 39 39 30 35 29 20 22 50 |4 (#$ . |9905) "P|
|00002cb0| 22 5d 29 0a 23 40 31 33 | 39 39 20 53 63 72 6f 6c |"]).#@13|99 Scrol|
|00002cc0| 6c 20 74 68 65 20 74 65 | 78 74 20 6f 66 20 74 68 |l the te|xt of th|
|00002cd0| 65 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |e curren|t window|
|00002ce0| 20 75 70 77 61 72 64 20 | 62 79 20 4c 49 4e 45 53 | upward |by LINES|
|00002cf0| 20 6c 69 6e 65 73 2c 20 | 6c 65 61 76 69 6e 67 20 | lines, |leaving |
|00002d00| 70 6f 69 6e 74 0a 61 73 | 20 63 6c 6f 73 65 20 61 |point.as| close a|
|00002d10| 73 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 69 74 |s possib|le to it|
|00002d20| 73 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |s curren|t window|
|00002d30| 20 70 6f 73 69 74 69 6f | 6e 20 28 77 69 6e 64 6f | positio|n (windo|
|00002d40| 77 20 6c 69 6e 65 20 61 | 6e 64 20 63 6f 6c 75 6d |w line a|nd colum|
|00002d50| 6e 29 2e 0a 49 6e 20 6f | 74 68 65 72 20 77 6f 72 |n)..In o|ther wor|
|00002d60| 64 73 2c 20 70 6f 69 6e | 74 20 69 73 20 6c 65 66 |ds, poin|t is lef|
|00002d70| 74 20 22 69 6e 20 70 6c | 61 63 65 22 20 77 69 74 |t "in pl|ace" wit|
|00002d80| 68 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 2e 20 |hin the |window. |
|00002d90| 20 41 73 20 61 20 73 70 | 65 63 69 61 6c 0a 63 61 | As a sp|ecial.ca|
|00002da0| 73 65 2c 20 77 68 65 6e | 20 74 68 65 20 63 75 72 |se, when| the cur|
|00002db0| 72 65 6e 74 20 77 69 6e | 64 6f 77 20 69 73 20 61 |rent win|dow is a|
|00002dc0| 20 6d 69 6e 69 62 75 66 | 66 65 72 20 77 69 6e 64 | minibuf|fer wind|
|00002dd0| 6f 77 2c 20 74 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |ow, this| command|
|00002de0| 20 73 63 72 6f 6c 6c 73 | 20 74 68 65 0a 60 6d 69 | scrolls| the.`mi|
|00002df0| 6e 69 62 75 66 66 65 72 | 2d 73 63 72 6f 6c 6c 2d |nibuffer|-scroll-|
|00002e00| 77 69 6e 64 6f 77 27 20 | 28 77 68 69 63 68 20 69 |window' |(which i|
|00002e10| 73 20 75 73 75 61 6c 6c | 79 20 74 68 65 20 6c 69 |s usuall|y the li|
|00002e20| 73 74 20 6f 66 20 63 6f | 6d 70 6c 65 74 69 6f 6e |st of co|mpletion|
|00002e30| 73 29 20 69 66 20 69 74 | 0a 65 78 69 73 74 73 2c |s) if it|.exists,|
|00002e40| 20 6f 72 20 6f 74 68 65 | 72 77 69 73 65 20 74 68 | or othe|rwise th|
|00002e50| 65 20 6e 65 78 74 20 77 | 69 6e 64 6f 77 20 69 6e |e next w|indow in|
|00002e60| 20 74 68 65 20 63 61 6e | 6f 6e 69 63 61 6c 20 6f | the can|onical o|
|00002e70| 72 64 65 72 69 6e 67 20 | 6f 66 20 77 69 6e 64 6f |rdering |of windo|
|00002e80| 77 73 2e 0a 0a 49 66 20 | 74 68 65 20 6f 70 74 69 |ws...If |the opti|
|00002e90| 6f 6e 61 6c 20 61 72 67 | 75 6d 65 6e 74 20 4c 49 |onal arg|ument LI|
|00002ea0| 4e 45 53 20 69 73 20 60 | 6e 69 6c 27 2c 20 73 63 |NES is `|nil', sc|
|00002eb0| 72 6f 6c 6c 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |roll the| window |
|00002ec0| 62 79 20 74 68 65 20 73 | 61 6d 65 20 61 6d 6f 75 |by the s|ame amou|
|00002ed0| 6e 74 0a 69 74 20 77 61 | 73 20 6d 6f 76 65 64 20 |nt.it wa|s moved |
|00002ee0| 62 79 20 74 68 65 20 69 | 6d 6d 65 64 69 61 74 65 |by the i|mmediate|
|00002ef0| 6c 79 20 70 72 65 76 69 | 6f 75 73 20 22 69 6e 20 |ly previ|ous "in |
|00002f00| 70 6c 61 63 65 22 20 73 | 63 72 6f 6c 6c 69 6e 67 |place" s|crolling|
|00002f10| 20 63 6f 6d 6d 61 6e 64 | 2c 20 6f 72 20 62 79 0a | command|, or by.|
|00002f20| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|00002f30| 20 76 61 72 69 61 62 6c | 65 20 60 73 63 72 6f 6c | variabl|e `scrol|
|00002f40| 6c 2d 64 65 66 61 75 6c | 74 2d 6c 69 6e 65 73 27 |l-defaul|t-lines'|
|00002f50| 20 28 75 73 75 61 6c 6c | 79 20 61 6c 6d 6f 73 74 | (usuall|y almost|
|00002f60| 20 61 20 77 69 6e 64 6f | 77 66 75 6c 29 0a 69 66 | a windo|wful).if|
|00002f70| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 63 6f | the pre|vious co|
|00002f80| 6d 6d 61 6e 64 20 77 61 | 73 20 6e 6f 74 20 61 6e |mmand wa|s not an|
|00002f90| 20 22 69 6e 20 70 6c 61 | 63 65 22 20 73 63 72 6f | "in pla|ce" scro|
|00002fa0| 6c 6c 69 6e 67 20 63 6f | 6d 6d 61 6e 64 20 28 6f |lling co|mmand (o|
|00002fb0| 72 20 77 68 65 6e 20 74 | 68 61 74 0a 70 72 65 76 |r when t|hat.prev|
|00002fc0| 69 6f 75 73 20 63 6f 6d | 6d 61 6e 64 20 73 63 72 |ious com|mand scr|
|00002fd0| 6f 6c 6c 65 64 20 73 6f | 6d 65 20 6f 74 68 65 72 |olled so|me other|
|00002fe0| 20 77 69 6e 64 6f 77 2c | 20 6f 72 20 77 68 65 6e | window,| or when|
|00002ff0| 20 6f 74 68 65 72 20 63 | 69 72 63 75 6d 73 74 61 | other c|ircumsta|
|00003000| 6e 63 65 73 0a 70 72 65 | 76 65 6e 74 20 74 68 65 |nces.pre|vent the|
|00003010| 20 70 72 65 76 69 6f 75 | 73 20 73 63 72 6f 6c 6c | previou|s scroll|
|00003020| 69 6e 67 20 64 69 73 74 | 61 6e 63 65 20 66 72 6f |ing dist|ance fro|
|00003030| 6d 20 62 65 69 6e 67 20 | 75 73 65 64 29 2e 20 20 |m being |used). |
|00003040| 49 66 20 4c 49 4e 45 53 | 20 69 73 20 74 68 65 0a |If LINES| is the.|
|00003050| 73 79 6d 62 6f 6c 20 60 | 2d 27 2c 20 74 68 65 6e |symbol `|-', then|
|00003060| 20 74 68 65 20 73 63 72 | 6f 6c 6c 69 6e 67 20 64 | the scr|olling d|
|00003070| 69 73 74 61 6e 63 65 20 | 69 73 20 64 65 74 65 72 |istance |is deter|
|00003080| 6d 69 6e 65 64 20 61 73 | 20 69 66 20 4c 49 4e 45 |mined as| if LINE|
|00003090| 53 20 68 61 64 20 62 65 | 65 6e 0a 60 6e 69 6c 27 |S had be|en.`nil'|
|000030a0| 20 61 6e 64 20 74 68 65 | 6e 20 74 68 61 74 20 64 | and the|n that d|
|000030b0| 69 73 74 61 6e 63 65 20 | 69 73 20 6d 75 6c 74 69 |istance |is multi|
|000030c0| 70 6c 69 65 64 20 62 79 | 20 2d 31 2e 0a 0a 49 66 |plied by| -1...If|
|000030d0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 63 61 6e 6e | the win|dow cann|
|000030e0| 6f 74 20 62 65 20 73 63 | 72 6f 6c 6c 65 64 20 62 |ot be sc|rolled b|
|000030f0| 79 20 74 68 65 20 66 75 | 6c 6c 20 64 69 73 74 61 |y the fu|ll dista|
|00003100| 6e 63 65 2c 20 70 6f 69 | 6e 74 20 69 73 20 61 6c |nce, poi|nt is al|
|00003110| 6c 6f 77 65 64 20 74 6f | 0a 73 74 72 61 79 20 66 |lowed to|.stray f|
|00003120| 72 6f 6d 20 69 74 73 20 | 69 6e 69 74 69 61 6c 20 |rom its |initial |
|00003130| 70 6f 73 69 74 69 6f 6e | 20 73 6f 20 74 68 61 74 |position| so that|
|00003140| 20 69 74 20 63 61 6e 20 | 6d 6f 76 65 20 74 68 65 | it can |move the|
|00003150| 20 66 75 6c 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 | full nu|mber of |
|00003160| 6c 69 6e 65 73 2e 0a 49 | 66 20 70 6f 69 6e 74 20 |lines..I|f point |
|00003170| 63 61 6e 6e 6f 74 20 6d | 6f 76 65 20 74 68 65 20 |cannot m|ove the |
|00003180| 66 75 6c 6c 20 6e 75 6d | 62 65 72 20 6f 66 20 6c |full num|ber of l|
|00003190| 69 6e 65 73 2c 20 70 6f | 69 6e 74 20 69 73 20 6d |ines, po|int is m|
|000031a0| 6f 76 65 64 20 74 6f 20 | 74 68 65 20 62 75 66 66 |oved to |the buff|
|000031b0| 65 72 0a 62 6f 75 6e 64 | 61 72 79 2e 20 20 41 6e |er.bound|ary. An|
|000031c0| 79 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 73 75 |y immedi|ately su|
|000031d0| 62 73 65 71 75 65 6e 74 | 20 22 69 6e 20 70 6c 61 |bsequent| "in pla|
|000031e0| 63 65 22 20 73 63 72 6f | 6c 6c 69 6e 67 20 63 6f |ce" scro|lling co|
|000031f0| 6d 6d 61 6e 64 73 20 77 | 69 6c 6c 20 74 72 79 0a |mmands w|ill try.|
|00003200| 74 6f 20 72 65 73 74 6f | 72 65 20 70 6f 69 6e 74 |to resto|re point|
|00003210| 20 74 6f 20 69 74 73 20 | 69 6e 69 74 69 61 6c 20 | to its |initial |
|00003220| 77 69 6e 64 6f 77 20 70 | 6f 73 69 74 69 6f 6e 2e |window p|osition.|
|00003230| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 72 |..(defal|ias 'scr|
|00003240| 6f 6c 6c 2d 75 70 2d 69 | 6e 2d 70 6c 61 63 65 20 |oll-up-i|n-place |
|00003250| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 6c 69 6e |#[(&opti|onal lin|
|00003260| 65 73 29 20 22 c0 c1 20 | 5c 6e c3 23 87 22 20 5b |es) ".. |\n.#." [|
|00003270| 73 63 72 6f 6c 6c 2d 77 | 69 6e 64 6f 77 2d 69 6e |scroll-w|indow-in|
|00003280| 2d 70 6c 61 63 65 20 73 | 63 72 6f 6c 6c 2d 63 68 |-place s|croll-ch|
|00003290| 6f 6f 73 65 2d 77 69 6e | 64 6f 77 20 6c 69 6e 65 |oose-win|dow line|
|000032a0| 73 20 31 5d 20 34 20 28 | 23 24 20 2e 20 31 31 34 |s 1] 4 (|#$ . 114|
|000032b0| 35 31 29 20 22 50 22 5d | 29 0a 23 40 31 37 33 30 |51) "P"]|).#@1730|
|000032c0| 20 53 63 72 6f 6c 6c 20 | 74 68 65 20 74 65 78 74 | Scroll |the text|
|000032d0| 20 6f 66 20 74 68 65 20 | 6e 65 78 74 20 77 69 6e | of the |next win|
|000032e0| 64 6f 77 20 64 6f 77 6e | 77 61 72 64 20 62 79 20 |dow down|ward by |
|000032f0| 4c 49 4e 45 53 20 6c 69 | 6e 65 73 2c 20 6c 65 61 |LINES li|nes, lea|
|00003300| 76 69 6e 67 20 70 6f 69 | 6e 74 20 69 6e 0a 74 68 |ving poi|nt in.th|
|00003310| 61 74 20 77 69 6e 64 6f | 77 20 61 73 20 63 6c 6f |at windo|w as clo|
|00003320| 73 65 20 61 73 20 70 6f | 73 73 69 62 6c 65 20 74 |se as po|ssible t|
|00003330| 6f 20 69 74 73 20 63 75 | 72 72 65 6e 74 20 77 69 |o its cu|rrent wi|
|00003340| 6e 64 6f 77 20 70 6f 73 | 69 74 69 6f 6e 20 28 77 |ndow pos|ition (w|
|00003350| 69 6e 64 6f 77 20 6c 69 | 6e 65 0a 61 6e 64 20 63 |indow li|ne.and c|
|00003360| 6f 6c 75 6d 6e 29 2e 20 | 20 49 6e 20 6f 74 68 65 |olumn). | In othe|
|00003370| 72 20 77 6f 72 64 73 2c | 20 70 6f 69 6e 74 20 69 |r words,| point i|
|00003380| 73 20 6c 65 66 74 20 22 | 69 6e 20 70 6c 61 63 65 |s left "|in place|
|00003390| 22 20 77 69 74 68 69 6e | 20 74 68 65 20 77 69 6e |" within| the win|
|000033a0| 64 6f 77 2e 0a 54 68 65 | 20 6e 65 78 74 20 77 69 |dow..The| next wi|
|000033b0| 6e 64 6f 77 20 69 73 20 | 67 65 6e 65 72 61 6c 6c |ndow is |generall|
|000033c0| 79 20 74 68 65 20 6f 6e | 65 20 62 65 6c 6f 77 20 |y the on|e below |
|000033d0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6f 6e 65 2c |the curr|ent one,|
|000033e0| 20 6f 72 20 74 68 65 20 | 6f 6e 65 20 61 74 20 74 | or the |one at t|
|000033f0| 68 65 0a 74 6f 70 20 6f | 66 20 74 68 65 20 73 63 |he.top o|f the sc|
|00003400| 72 65 65 6e 20 69 66 20 | 74 68 65 20 63 75 72 72 |reen if |the curr|
|00003410| 65 6e 74 20 77 69 6e 64 | 6f 77 20 69 73 20 61 74 |ent wind|ow is at|
|00003420| 20 74 68 65 20 62 6f 74 | 74 6f 6d 20 6f 66 20 74 | the bot|tom of t|
|00003430| 68 65 20 73 63 72 65 65 | 6e 2e 20 20 49 6e 0a 73 |he scree|n. In.s|
|00003440| 70 65 63 69 61 6c 20 63 | 69 72 63 75 6d 73 74 61 |pecial c|ircumsta|
|00003450| 6e 63 65 73 20 74 68 69 | 73 20 63 6f 6d 6d 61 6e |nces thi|s comman|
|00003460| 64 20 77 69 6c 6c 20 73 | 63 72 6f 6c 6c 20 61 20 |d will s|croll a |
|00003470| 77 69 6e 64 6f 77 20 6f | 74 68 65 72 20 74 68 61 |window o|ther tha|
|00003480| 6e 20 74 68 65 20 6e 65 | 78 74 0a 77 69 6e 64 6f |n the ne|xt.windo|
|00003490| 77 2e 20 20 52 65 61 64 | 20 74 68 65 20 64 6f 63 |w. Read| the doc|
|000034a0| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 66 6f 72 20 74 |umentati|on for t|
|000034b0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 60 73 63 72 |he funct|ion `scr|
|000034c0| 6f 6c 6c 2d 63 68 6f 6f | 73 65 2d 6f 74 68 65 72 |oll-choo|se-other|
|000034d0| 2d 77 69 6e 64 6f 77 27 | 0a 66 6f 72 20 64 65 74 |-window'|.for det|
|000034e0| 61 69 6c 73 2e 0a 0a 49 | 66 20 74 68 65 20 6f 70 |ails...I|f the op|
|000034f0| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 20 |tional a|rgument |
|00003500| 4c 49 4e 45 53 20 69 73 | 20 60 6e 69 6c 27 2c 20 |LINES is| `nil', |
|00003510| 73 63 72 6f 6c 6c 20 74 | 68 65 20 77 69 6e 64 6f |scroll t|he windo|
|00003520| 77 20 62 79 20 74 68 65 | 20 73 61 6d 65 20 61 6d |w by the| same am|
|00003530| 6f 75 6e 74 0a 69 74 20 | 77 61 73 20 6d 6f 76 65 |ount.it |was move|
|00003540| 64 20 62 79 20 74 68 65 | 20 69 6d 6d 65 64 69 61 |d by the| immedia|
|00003550| 74 65 6c 79 20 70 72 65 | 76 69 6f 75 73 20 22 69 |tely pre|vious "i|
|00003560| 6e 20 70 6c 61 63 65 22 | 20 73 63 72 6f 6c 6c 69 |n place"| scrolli|
|00003570| 6e 67 20 63 6f 6d 6d 61 | 6e 64 2c 20 6f 72 20 62 |ng comma|nd, or b|
|00003580| 79 0a 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |y.the va|lue of t|
|00003590| 68 65 20 76 61 72 69 61 | 62 6c 65 20 60 73 63 72 |he varia|ble `scr|
|000035a0| 6f 6c 6c 2d 64 65 66 61 | 75 6c 74 2d 6c 69 6e 65 |oll-defa|ult-line|
|000035b0| 73 27 20 28 75 73 75 61 | 6c 6c 79 20 61 6c 6d 6f |s' (usua|lly almo|
|000035c0| 73 74 20 61 20 77 69 6e | 64 6f 77 66 75 6c 29 0a |st a win|dowful).|
|000035d0| 69 66 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |if the p|revious |
|000035e0| 63 6f 6d 6d 61 6e 64 20 | 77 61 73 20 6e 6f 74 20 |command |was not |
|000035f0| 61 6e 20 22 69 6e 20 70 | 6c 61 63 65 22 20 73 63 |an "in p|lace" sc|
|00003600| 72 6f 6c 6c 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 20 |rolling |command |
|00003610| 28 6f 72 20 77 68 65 6e | 20 74 68 61 74 0a 70 72 |(or when| that.pr|
|00003620| 65 76 69 6f 75 73 20 63 | 6f 6d 6d 61 6e 64 20 73 |evious c|ommand s|
|00003630| 63 72 6f 6c 6c 65 64 20 | 73 6f 6d 65 20 6f 74 68 |crolled |some oth|
|00003640| 65 72 20 77 69 6e 64 6f | 77 2c 20 6f 72 20 77 68 |er windo|w, or wh|
|00003650| 65 6e 20 6f 74 68 65 72 | 20 63 69 72 63 75 6d 73 |en other| circums|
|00003660| 74 61 6e 63 65 73 0a 70 | 72 65 76 65 6e 74 20 74 |tances.p|revent t|
|00003670| 68 65 20 70 72 65 76 69 | 6f 75 73 20 73 63 72 6f |he previ|ous scro|
|00003680| 6c 6c 69 6e 67 20 64 69 | 73 74 61 6e 63 65 20 66 |lling di|stance f|
|00003690| 72 6f 6d 20 62 65 69 6e | 67 20 75 73 65 64 29 2e |rom bein|g used).|
|000036a0| 20 20 49 66 20 4c 49 4e | 45 53 20 69 73 20 74 68 | If LIN|ES is th|
|000036b0| 65 0a 73 79 6d 62 6f 6c | 20 60 2d 27 2c 20 74 68 |e.symbol| `-', th|
|000036c0| 65 6e 20 74 68 65 20 73 | 63 72 6f 6c 6c 69 6e 67 |en the s|crolling|
|000036d0| 20 64 69 73 74 61 6e 63 | 65 20 69 73 20 64 65 74 | distanc|e is det|
|000036e0| 65 72 6d 69 6e 65 64 20 | 61 73 20 69 66 20 4c 49 |ermined |as if LI|
|000036f0| 4e 45 53 20 68 61 64 20 | 62 65 65 6e 0a 60 6e 69 |NES had |been.`ni|
|00003700| 6c 27 20 61 6e 64 20 74 | 68 65 6e 20 74 68 61 74 |l' and t|hen that|
|00003710| 20 64 69 73 74 61 6e 63 | 65 20 69 73 20 6d 75 6c | distanc|e is mul|
|00003720| 74 69 70 6c 69 65 64 20 | 62 79 20 2d 31 2e 0a 0a |tiplied |by -1...|
|00003730| 49 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 63 61 |If the w|indow ca|
|00003740| 6e 6e 6f 74 20 62 65 20 | 73 63 72 6f 6c 6c 65 64 |nnot be |scrolled|
|00003750| 20 62 79 20 74 68 65 20 | 66 75 6c 6c 20 64 69 73 | by the |full dis|
|00003760| 74 61 6e 63 65 2c 20 70 | 6f 69 6e 74 20 69 73 20 |tance, p|oint is |
|00003770| 61 6c 6c 6f 77 65 64 20 | 74 6f 0a 73 74 72 61 79 |allowed |to.stray|
|00003780| 20 66 72 6f 6d 20 69 74 | 73 20 69 6e 69 74 69 61 | from it|s initia|
|00003790| 6c 20 70 6f 73 69 74 69 | 6f 6e 20 73 6f 20 74 68 |l positi|on so th|
|000037a0| 61 74 20 69 74 20 63 61 | 6e 20 6d 6f 76 65 20 74 |at it ca|n move t|
|000037b0| 68 65 20 66 75 6c 6c 20 | 6e 75 6d 62 65 72 20 6f |he full |number o|
|000037c0| 66 20 6c 69 6e 65 73 2e | 0a 49 66 20 70 6f 69 6e |f lines.|.If poin|
|000037d0| 74 20 63 61 6e 6e 6f 74 | 20 6d 6f 76 65 20 74 68 |t cannot| move th|
|000037e0| 65 20 66 75 6c 6c 20 6e | 75 6d 62 65 72 20 6f 66 |e full n|umber of|
|000037f0| 20 6c 69 6e 65 73 2c 20 | 70 6f 69 6e 74 20 69 73 | lines, |point is|
|00003800| 20 6d 6f 76 65 64 20 74 | 6f 20 74 68 65 20 62 75 | moved t|o the bu|
|00003810| 66 66 65 72 0a 62 6f 75 | 6e 64 61 72 79 2e 20 20 |ffer.bou|ndary. |
|00003820| 41 6e 79 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |Any imme|diately |
|00003830| 73 75 62 73 65 71 75 65 | 6e 74 20 22 69 6e 20 70 |subseque|nt "in p|
|00003840| 6c 61 63 65 22 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |lace" sc|rolling |
|00003850| 63 6f 6d 6d 61 6e 64 73 | 20 77 69 6c 6c 20 74 72 |commands| will tr|
|00003860| 79 0a 74 6f 20 72 65 73 | 74 6f 72 65 20 70 6f 69 |y.to res|tore poi|
|00003870| 6e 74 20 74 6f 20 69 74 | 73 20 69 6e 69 74 69 61 |nt to it|s initia|
|00003880| 6c 20 77 69 6e 64 6f 77 | 20 70 6f 73 69 74 69 6f |l window| positio|
|00003890| 6e 2e 0a 0a 49 66 20 69 | 74 20 69 73 20 69 6d 70 |n...If i|t is imp|
|000038a0| 6f 73 73 69 62 6c 65 20 | 74 6f 20 73 63 72 6f 6c |ossible |to scrol|
|000038b0| 6c 20 74 68 65 20 74 65 | 78 74 20 6f 66 20 74 68 |l the te|xt of th|
|000038c0| 65 20 77 69 6e 64 6f 77 | 20 61 74 20 61 6c 6c 20 |e window| at all |
|000038d0| 28 62 65 63 61 75 73 65 | 20 61 20 62 75 66 66 65 |(because| a buffe|
|000038e0| 72 0a 62 6f 75 6e 64 61 | 72 79 20 69 73 20 61 6c |r.bounda|ry is al|
|000038f0| 72 65 61 64 79 20 76 69 | 73 69 62 6c 65 29 2c 20 |ready vi|sible), |
|00003900| 74 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 73 69 67 |this com|mand sig|
|00003910| 6e 61 6c 73 20 61 20 62 | 75 66 66 65 72 20 62 6f |nals a b|uffer bo|
|00003920| 75 6e 64 61 72 79 20 65 | 72 72 6f 72 2e 0a 54 68 |undary e|rror..Th|
|00003930| 65 20 65 72 72 6f 72 20 | 69 73 20 73 69 67 6e 61 |e error |is signa|
|00003940| 6c 6c 65 64 20 65 76 65 | 6e 20 69 66 20 70 6f 69 |lled eve|n if poi|
|00003950| 6e 74 20 63 6f 75 6c 64 | 20 6f 74 68 65 72 77 69 |nt could| otherwi|
|00003960| 73 65 20 6d 6f 76 65 20 | 74 68 65 20 66 75 6c 6c |se move |the full|
|00003970| 20 6e 75 6d 62 65 72 20 | 6f 66 0a 6c 69 6e 65 73 | number |of.lines|
|00003980| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 63 |...(defa|lias 'sc|
|00003990| 72 6f 6c 6c 2d 6f 74 68 | 65 72 2d 77 69 6e 64 6f |roll-oth|er-windo|
|000039a0| 77 2d 64 6f 77 6e 2d 69 | 6e 2d 70 6c 61 63 65 20 |w-down-i|n-place |
|000039b0| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 6c 69 6e |#[(&opti|onal lin|
|000039c0| 65 73 29 20 22 c0 c1 20 | 5c 6e c3 23 87 22 20 5b |es) ".. |\n.#." [|
|000039d0| 73 63 72 6f 6c 6c 2d 77 | 69 6e 64 6f 77 2d 69 6e |scroll-w|indow-in|
|000039e0| 2d 70 6c 61 63 65 20 73 | 63 72 6f 6c 6c 2d 63 68 |-place s|croll-ch|
|000039f0| 6f 6f 73 65 2d 6f 74 68 | 65 72 2d 77 69 6e 64 6f |oose-oth|er-windo|
|00003a00| 77 20 6c 69 6e 65 73 20 | 2d 31 5d 20 34 20 28 23 |w lines |-1] 4 (#|
|00003a10| 24 20 2e 20 31 32 39 39 | 33 29 20 22 50 22 5d 29 |$ . 1299|3) "P"])|
|00003a20| 0a 23 40 31 37 32 38 20 | 53 63 72 6f 6c 6c 20 74 |.#@1728 |Scroll t|
|00003a30| 68 65 20 74 65 78 74 20 | 6f 66 20 74 68 65 20 6e |he text |of the n|
|00003a40| 65 78 74 20 77 69 6e 64 | 6f 77 20 75 70 77 61 72 |ext wind|ow upwar|
|00003a50| 64 20 62 79 20 4c 49 4e | 45 53 20 6c 69 6e 65 73 |d by LIN|ES lines|
|00003a60| 2c 20 6c 65 61 76 69 6e | 67 20 70 6f 69 6e 74 20 |, leavin|g point |
|00003a70| 69 6e 0a 74 68 61 74 20 | 77 69 6e 64 6f 77 20 61 |in.that |window a|
|00003a80| 73 20 63 6c 6f 73 65 20 | 61 73 20 70 6f 73 73 69 |s close |as possi|
|00003a90| 62 6c 65 20 74 6f 20 69 | 74 73 20 63 75 72 72 65 |ble to i|ts curre|
|00003aa0| 6e 74 20 77 69 6e 64 6f | 77 20 70 6f 73 69 74 69 |nt windo|w positi|
|00003ab0| 6f 6e 20 28 77 69 6e 64 | 6f 77 20 6c 69 6e 65 0a |on (wind|ow line.|
|00003ac0| 61 6e 64 20 63 6f 6c 75 | 6d 6e 29 2e 20 20 49 6e |and colu|mn). In|
|00003ad0| 20 6f 74 68 65 72 20 77 | 6f 72 64 73 2c 20 70 6f | other w|ords, po|
|00003ae0| 69 6e 74 20 69 73 20 6c | 65 66 74 20 22 69 6e 20 |int is l|eft "in |
|00003af0| 70 6c 61 63 65 22 20 77 | 69 74 68 69 6e 20 74 68 |place" w|ithin th|
|00003b00| 65 20 77 69 6e 64 6f 77 | 2e 0a 54 68 65 20 6e 65 |e window|..The ne|
|00003b10| 78 74 20 77 69 6e 64 6f | 77 20 69 73 20 67 65 6e |xt windo|w is gen|
|00003b20| 65 72 61 6c 6c 79 20 74 | 68 65 20 6f 6e 65 20 62 |erally t|he one b|
|00003b30| 65 6c 6f 77 20 74 68 65 | 20 63 75 72 72 65 6e 74 |elow the| current|
|00003b40| 20 6f 6e 65 2c 20 6f 72 | 20 74 68 65 20 6f 6e 65 | one, or| the one|
|00003b50| 20 61 74 20 74 68 65 0a | 74 6f 70 20 6f 66 20 74 | at the.|top of t|
|00003b60| 68 65 20 73 63 72 65 65 | 6e 20 69 66 20 74 68 65 |he scree|n if the|
|00003b70| 20 63 75 72 72 65 6e 74 | 20 77 69 6e 64 6f 77 20 | current| window |
|00003b80| 69 73 20 61 74 20 74 68 | 65 20 62 6f 74 74 6f 6d |is at th|e bottom|
|00003b90| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 2e 20 | of the |screen. |
|00003ba0| 20 49 6e 0a 73 70 65 63 | 69 61 6c 20 63 69 72 63 | In.spec|ial circ|
|00003bb0| 75 6d 73 74 61 6e 63 65 | 73 20 74 68 69 73 20 63 |umstance|s this c|
|00003bc0| 6f 6d 6d 61 6e 64 20 77 | 69 6c 6c 20 73 63 72 6f |ommand w|ill scro|
|00003bd0| 6c 6c 20 61 20 77 69 6e | 64 6f 77 20 6f 74 68 65 |ll a win|dow othe|
|00003be0| 72 20 74 68 61 6e 20 74 | 68 65 20 6e 65 78 74 0a |r than t|he next.|
|00003bf0| 77 69 6e 64 6f 77 2e 20 | 20 52 65 61 64 20 74 68 |window. | Read th|
|00003c00| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation |
|00003c10| 66 6f 72 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |for the |function|
|00003c20| 20 60 73 63 72 6f 6c 6c | 2d 63 68 6f 6f 73 65 2d | `scroll|-choose-|
|00003c30| 6f 74 68 65 72 2d 77 69 | 6e 64 6f 77 27 0a 66 6f |other-wi|ndow'.fo|
|00003c40| 72 20 64 65 74 61 69 6c | 73 2e 0a 0a 49 66 20 74 |r detail|s...If t|
|00003c50| 68 65 20 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 75 |he optio|nal argu|
|00003c60| 6d 65 6e 74 20 4c 49 4e | 45 53 20 69 73 20 60 6e |ment LIN|ES is `n|
|00003c70| 69 6c 27 2c 20 73 63 72 | 6f 6c 6c 20 74 68 65 20 |il', scr|oll the |
|00003c80| 77 69 6e 64 6f 77 20 62 | 79 20 74 68 65 20 73 61 |window b|y the sa|
|00003c90| 6d 65 20 61 6d 6f 75 6e | 74 0a 69 74 20 77 61 73 |me amoun|t.it was|
|00003ca0| 20 6d 6f 76 65 64 20 62 | 79 20 74 68 65 20 69 6d | moved b|y the im|
|00003cb0| 6d 65 64 69 61 74 65 6c | 79 20 70 72 65 76 69 6f |mediatel|y previo|
|00003cc0| 75 73 20 22 69 6e 20 70 | 6c 61 63 65 22 20 73 63 |us "in p|lace" sc|
|00003cd0| 72 6f 6c 6c 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 2c |rolling |command,|
|00003ce0| 20 6f 72 20 62 79 0a 74 | 68 65 20 76 61 6c 75 65 | or by.t|he value|
|00003cf0| 20 6f 66 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | of the |variable|
|00003d00| 20 60 73 63 72 6f 6c 6c | 2d 64 65 66 61 75 6c 74 | `scroll|-default|
|00003d10| 2d 6c 69 6e 65 73 27 20 | 28 75 73 75 61 6c 6c 79 |-lines' |(usually|
|00003d20| 20 61 6c 6d 6f 73 74 20 | 61 20 77 69 6e 64 6f 77 | almost |a window|
|00003d30| 66 75 6c 29 0a 69 66 20 | 74 68 65 20 70 72 65 76 |ful).if |the prev|
|00003d40| 69 6f 75 73 20 63 6f 6d | 6d 61 6e 64 20 77 61 73 |ious com|mand was|
|00003d50| 20 6e 6f 74 20 61 6e 20 | 22 69 6e 20 70 6c 61 63 | not an |"in plac|
|00003d60| 65 22 20 73 63 72 6f 6c | 6c 69 6e 67 20 63 6f 6d |e" scrol|ling com|
|00003d70| 6d 61 6e 64 20 28 6f 72 | 20 77 68 65 6e 20 74 68 |mand (or| when th|
|00003d80| 61 74 0a 70 72 65 76 69 | 6f 75 73 20 63 6f 6d 6d |at.previ|ous comm|
|00003d90| 61 6e 64 20 73 63 72 6f | 6c 6c 65 64 20 73 6f 6d |and scro|lled som|
|00003da0| 65 20 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 2c 20 |e other |window, |
|00003db0| 6f 72 20 77 68 65 6e 20 | 6f 74 68 65 72 20 63 69 |or when |other ci|
|00003dc0| 72 63 75 6d 73 74 61 6e | 63 65 73 0a 70 72 65 76 |rcumstan|ces.prev|
|00003dd0| 65 6e 74 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |ent the |previous|
|00003de0| 20 73 63 72 6f 6c 6c 69 | 6e 67 20 64 69 73 74 61 | scrolli|ng dista|
|00003df0| 6e 63 65 20 66 72 6f 6d | 20 62 65 69 6e 67 20 75 |nce from| being u|
|00003e00| 73 65 64 29 2e 20 20 49 | 66 20 4c 49 4e 45 53 20 |sed). I|f LINES |
|00003e10| 69 73 20 74 68 65 0a 73 | 79 6d 62 6f 6c 20 60 2d |is the.s|ymbol `-|
|00003e20| 27 2c 20 74 68 65 6e 20 | 74 68 65 20 73 63 72 6f |', then |the scro|
|00003e30| 6c 6c 69 6e 67 20 64 69 | 73 74 61 6e 63 65 20 69 |lling di|stance i|
|00003e40| 73 20 64 65 74 65 72 6d | 69 6e 65 64 20 61 73 20 |s determ|ined as |
|00003e50| 69 66 20 4c 49 4e 45 53 | 20 68 61 64 20 62 65 65 |if LINES| had bee|
|00003e60| 6e 0a 60 6e 69 6c 27 20 | 61 6e 64 20 74 68 65 6e |n.`nil' |and then|
|00003e70| 20 74 68 61 74 20 64 69 | 73 74 61 6e 63 65 20 69 | that di|stance i|
|00003e80| 73 20 6d 75 6c 74 69 70 | 6c 69 65 64 20 62 79 20 |s multip|lied by |
|00003e90| 2d 31 2e 0a 0a 49 66 20 | 74 68 65 20 77 69 6e 64 |-1...If |the wind|
|00003ea0| 6f 77 20 63 61 6e 6e 6f | 74 20 62 65 20 73 63 72 |ow canno|t be scr|
|00003eb0| 6f 6c 6c 65 64 20 62 79 | 20 74 68 65 20 66 75 6c |olled by| the ful|
|00003ec0| 6c 20 64 69 73 74 61 6e | 63 65 2c 20 70 6f 69 6e |l distan|ce, poin|
|00003ed0| 74 20 69 73 20 61 6c 6c | 6f 77 65 64 20 74 6f 0a |t is all|owed to.|
|00003ee0| 73 74 72 61 79 20 66 72 | 6f 6d 20 69 74 73 20 69 |stray fr|om its i|
|00003ef0| 6e 69 74 69 61 6c 20 70 | 6f 73 69 74 69 6f 6e 20 |nitial p|osition |
|00003f00| 73 6f 20 74 68 61 74 20 | 69 74 20 63 61 6e 20 6d |so that |it can m|
|00003f10| 6f 76 65 20 74 68 65 20 | 66 75 6c 6c 20 6e 75 6d |ove the |full num|
|00003f20| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 2e 0a 49 66 |ber of l|ines..If|
|00003f30| 20 70 6f 69 6e 74 20 63 | 61 6e 6e 6f 74 20 6d 6f | point c|annot mo|
|00003f40| 76 65 20 74 68 65 20 66 | 75 6c 6c 20 6e 75 6d 62 |ve the f|ull numb|
|00003f50| 65 72 20 6f 66 20 6c 69 | 6e 65 73 2c 20 70 6f 69 |er of li|nes, poi|
|00003f60| 6e 74 20 69 73 20 6d 6f | 76 65 64 20 74 6f 20 74 |nt is mo|ved to t|
|00003f70| 68 65 20 62 75 66 66 65 | 72 0a 62 6f 75 6e 64 61 |he buffe|r.bounda|
|00003f80| 72 79 2e 20 20 41 6e 79 | 20 69 6d 6d 65 64 69 61 |ry. Any| immedia|
|00003f90| 74 65 6c 79 20 73 75 62 | 73 65 71 75 65 6e 74 20 |tely sub|sequent |
|00003fa0| 22 69 6e 20 70 6c 61 63 | 65 22 20 73 63 72 6f 6c |"in plac|e" scrol|
|00003fb0| 6c 69 6e 67 20 63 6f 6d | 6d 61 6e 64 73 20 77 69 |ling com|mands wi|
|00003fc0| 6c 6c 20 74 72 79 0a 74 | 6f 20 72 65 73 74 6f 72 |ll try.t|o restor|
|00003fd0| 65 20 70 6f 69 6e 74 20 | 74 6f 20 69 74 73 20 69 |e point |to its i|
|00003fe0| 6e 69 74 69 61 6c 20 77 | 69 6e 64 6f 77 20 70 6f |nitial w|indow po|
|00003ff0| 73 69 74 69 6f 6e 2e 0a | 0a 49 66 20 69 74 20 69 |sition..|.If it i|
|00004000| 73 20 69 6d 70 6f 73 73 | 69 62 6c 65 20 74 6f 20 |s imposs|ible to |
|00004010| 73 63 72 6f 6c 6c 20 74 | 68 65 20 74 65 78 74 20 |scroll t|he text |
|00004020| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 61 74 |of the w|indow at|
|00004030| 20 61 6c 6c 20 28 62 65 | 63 61 75 73 65 20 61 20 | all (be|cause a |
|00004040| 62 75 66 66 65 72 0a 62 | 6f 75 6e 64 61 72 79 20 |buffer.b|oundary |
|00004050| 69 73 20 61 6c 72 65 61 | 64 79 20 76 69 73 69 62 |is alrea|dy visib|
|00004060| 6c 65 29 2c 20 74 68 69 | 73 20 63 6f 6d 6d 61 6e |le), thi|s comman|
|00004070| 64 20 73 69 67 6e 61 6c | 73 20 61 20 62 75 66 66 |d signal|s a buff|
|00004080| 65 72 20 62 6f 75 6e 64 | 61 72 79 20 65 72 72 6f |er bound|ary erro|
|00004090| 72 2e 0a 54 68 65 20 65 | 72 72 6f 72 20 69 73 20 |r..The e|rror is |
|000040a0| 73 69 67 6e 61 6c 6c 65 | 64 20 65 76 65 6e 20 69 |signalle|d even i|
|000040b0| 66 20 70 6f 69 6e 74 20 | 63 6f 75 6c 64 20 6f 74 |f point |could ot|
|000040c0| 68 65 72 77 69 73 65 20 | 6d 6f 76 65 20 74 68 65 |herwise |move the|
|000040d0| 20 66 75 6c 6c 20 6e 75 | 6d 62 65 72 20 6f 66 0a | full nu|mber of.|
|000040e0| 6c 69 6e 65 73 2e 1f 0a | 28 64 65 66 61 6c 69 61 |lines...|(defalia|
|000040f0| 73 20 27 73 63 72 6f 6c | 6c 2d 6f 74 68 65 72 2d |s 'scrol|l-other-|
|00004100| 77 69 6e 64 6f 77 2d 69 | 6e 2d 70 6c 61 63 65 20 |window-i|n-place |
|00004110| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 6c 69 6e |#[(&opti|onal lin|
|00004120| 65 73 29 20 22 c0 c1 20 | 5c 6e c3 23 87 22 20 5b |es) ".. |\n.#." [|
|00004130| 73 63 72 6f 6c 6c 2d 77 | 69 6e 64 6f 77 2d 69 6e |scroll-w|indow-in|
|00004140| 2d 70 6c 61 63 65 20 73 | 63 72 6f 6c 6c 2d 63 68 |-place s|croll-ch|
|00004150| 6f 6f 73 65 2d 6f 74 68 | 65 72 2d 77 69 6e 64 6f |oose-oth|er-windo|
|00004160| 77 20 6c 69 6e 65 73 20 | 31 5d 20 34 20 28 23 24 |w lines |1] 4 (#$|
|00004170| 20 2e 20 31 34 38 38 38 | 29 20 22 50 22 5d 29 0a | . 14888|) "P"]).|
|00004180| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 ac |(byte-co|de "..!.|
|00004190| 85 c1 c2 4b 4d 88 c0 c3 | 21 ac 85 c3 c4 4b 4d 88 |...KM...|!....KM.|
|000041a0| c0 c5 21 ac 8a c0 c6 21 | ab 85 c5 c6 4b 4d 88 c0 |..!....!|....KM..|
|000041b0| c7 21 ac 85 c7 c8 4b 4d | 88 c0 87 22 20 5b 66 62 |.!....KM|..." [fb|
|000041c0| 6f 75 6e 64 70 20 6f 72 | 69 67 69 6e 61 6c 2d 73 |oundp or|iginal-s|
|000041d0| 63 72 6f 6c 6c 2d 64 6f | 77 6e 20 73 63 72 6f 6c |croll-do|wn scrol|
|000041e0| 6c 2d 64 6f 77 6e 20 6f | 72 69 67 69 6e 61 6c 2d |l-down o|riginal-|
|000041f0| 73 63 72 6f 6c 6c 2d 75 | 70 20 73 63 72 6f 6c 6c |scroll-u|p scroll|
|00004200| 2d 75 70 20 6f 72 69 67 | 69 6e 61 6c 2d 73 63 72 |-up orig|inal-scr|
|00004210| 6f 6c 6c 2d 6f 74 68 65 | 72 2d 77 69 6e 64 6f 77 |oll-othe|r-window|
|00004220| 2d 64 6f 77 6e 20 73 63 | 72 6f 6c 6c 2d 6f 74 68 |-down sc|roll-oth|
|00004230| 65 72 2d 77 69 6e 64 6f | 77 2d 64 6f 77 6e 20 6f |er-windo|w-down o|
|00004240| 72 69 67 69 6e 61 6c 2d | 73 63 72 6f 6c 6c 2d 6f |riginal-|scroll-o|
|00004250| 74 68 65 72 2d 77 69 6e | 64 6f 77 20 73 63 72 6f |ther-win|dow scro|
|00004260| 6c 6c 2d 6f 74 68 65 72 | 2d 77 69 6e 64 6f 77 5d |ll-other|-window]|
|00004270| 20 32 29 0a 23 40 31 30 | 36 36 20 53 63 72 6f 6c | 2).#@10|66 Scrol|
|00004280| 6c 20 74 68 65 20 74 65 | 78 74 20 6f 66 20 74 68 |l the te|xt of th|
|00004290| 65 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |e curren|t window|
|000042a0| 20 64 6f 77 6e 77 61 72 | 64 20 62 79 20 4c 49 4e | downwar|d by LIN|
|000042b0| 45 53 20 6c 69 6e 65 73 | 2e 20 20 41 73 20 61 20 |ES lines|. As a |
|000042c0| 73 70 65 63 69 61 6c 0a | 63 61 73 65 2c 20 77 68 |special.|case, wh|
|000042d0| 65 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 77 |en the c|urrent w|
|000042e0| 69 6e 64 6f 77 20 69 73 | 20 61 20 6d 69 6e 69 62 |indow is| a minib|
|000042f0| 75 66 66 65 72 20 77 69 | 6e 64 6f 77 2c 20 74 68 |uffer wi|ndow, th|
|00004300| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 73 63 72 6f 6c |is comma|nd scrol|
|00004310| 6c 73 20 74 68 65 0a 60 | 6d 69 6e 69 62 75 66 66 |ls the.`|minibuff|
|00004320| 65 72 2d 73 63 72 6f 6c | 6c 2d 77 69 6e 64 6f 77 |er-scrol|l-window|
|00004330| 27 20 28 77 68 69 63 68 | 20 69 73 20 75 73 75 61 |' (which| is usua|
|00004340| 6c 6c 79 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |lly the |list of |
|00004350| 63 6f 6d 70 6c 65 74 69 | 6f 6e 73 29 20 69 66 20 |completi|ons) if |
|00004360| 69 74 0a 65 78 69 73 74 | 73 2c 20 6f 72 20 6f 74 |it.exist|s, or ot|
|00004370| 68 65 72 77 69 73 65 20 | 74 68 65 20 6e 65 78 74 |herwise |the next|
|00004380| 20 77 69 6e 64 6f 77 20 | 69 6e 20 74 68 65 20 63 | window |in the c|
|00004390| 61 6e 6f 6e 69 63 61 6c | 20 6f 72 64 65 72 69 6e |anonical| orderin|
|000043a0| 67 20 6f 66 20 77 69 6e | 64 6f 77 73 2e 0a 0a 54 |g of win|dows...T|
|000043b0| 68 65 20 61 72 67 75 6d | 65 6e 74 20 4c 49 4e 45 |he argum|ent LINE|
|000043c0| 53 20 69 73 20 6f 70 74 | 69 6f 6e 61 6c 2e 20 20 |S is opt|ional. |
|000043d0| 49 74 73 20 6d 65 61 6e | 69 6e 67 20 64 65 70 65 |Its mean|ing depe|
|000043e0| 6e 64 73 20 6f 6e 20 74 | 68 65 20 63 75 72 72 65 |nds on t|he curre|
|000043f0| 6e 74 20 76 61 6c 75 65 | 20 6f 66 0a 74 68 65 20 |nt value| of.the |
|00004400| 76 61 72 69 61 62 6c 65 | 20 60 73 63 72 6f 6c 6c |variable| `scroll|
|00004410| 2d 69 6e 2d 70 6c 61 63 | 65 27 2e 0a 0a 57 68 65 |-in-plac|e'...Whe|
|00004420| 6e 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |n the va|riable `|
|00004430| 73 63 72 6f 6c 6c 2d 69 | 6e 2d 70 6c 61 63 65 27 |scroll-i|n-place'|
|00004440| 20 69 73 20 74 72 75 65 | 2c 20 74 68 69 73 20 63 | is true|, this c|
|00004450| 6f 6d 6d 61 6e 64 20 77 | 6f 72 6b 73 20 6a 75 73 |ommand w|orks jus|
|00004460| 74 20 6c 69 6b 65 20 74 | 68 65 0a 63 6f 6d 6d 61 |t like t|he.comma|
|00004470| 6e 64 20 60 73 63 72 6f | 6c 6c 2d 64 6f 77 6e 2d |nd `scro|ll-down-|
|00004480| 69 6e 2d 70 6c 61 63 65 | 27 2c 20 73 63 72 6f 6c |in-place|', scrol|
|00004490| 6c 69 6e 67 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ling the| current|
|000044a0| 20 77 69 6e 64 6f 77 20 | 61 6e 64 20 6c 65 61 76 | window |and leav|
|000044b0| 69 6e 67 20 70 6f 69 6e | 74 0a 22 69 6e 20 70 6c |ing poin|t."in pl|
|000044c0| 61 63 65 22 20 77 69 74 | 68 69 6e 20 74 68 65 20 |ace" wit|hin the |
|000044d0| 77 69 6e 64 6f 77 2e 20 | 20 53 65 65 20 74 68 65 |window. | See the|
|000044e0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|000044f0| 6f 72 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 0a 60 |or the c|ommand.`|
|00004500| 73 63 72 6f 6c 6c 2d 64 | 6f 77 6e 2d 69 6e 2d 70 |scroll-d|own-in-p|
|00004510| 6c 61 63 65 27 20 66 6f | 72 20 6d 6f 72 65 20 69 |lace' fo|r more i|
|00004520| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0a 0a 57 68 65 |nformati|on...Whe|
|00004530| 6e 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |n the va|riable `|
|00004540| 73 63 72 6f 6c 6c 2d 69 | 6e 2d 70 6c 61 63 65 27 |scroll-i|n-place'|
|00004550| 20 69 73 20 60 6e 69 6c | 27 20 74 68 69 73 20 63 | is `nil|' this c|
|00004560| 6f 6d 6d 61 6e 64 20 69 | 6e 76 6f 6b 65 73 20 74 |ommand i|nvokes t|
|00004570| 68 65 20 73 74 61 6e 64 | 61 72 64 0a 47 4e 55 20 |he stand|ard.GNU |
|00004580| 45 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 6f 66 |Emacs ve|rsion of|
|00004590| 20 60 73 63 72 6f 6c 6c | 2d 64 6f 77 6e 27 2e 20 | `scroll|-down'. |
|000045a0| 20 49 6e 20 74 68 61 74 | 20 63 61 73 65 2c 20 77 | In that| case, w|
|000045b0| 68 65 6e 20 4c 49 4e 45 | 53 20 69 73 20 60 6e 69 |hen LINE|S is `ni|
|000045c0| 6c 27 20 74 68 65 0a 63 | 75 72 72 65 6e 74 20 77 |l' the.c|urrent w|
|000045d0| 69 6e 64 6f 77 20 69 73 | 20 73 63 72 6f 6c 6c 65 |indow is| scrolle|
|000045e0| 64 20 62 79 20 6e 65 61 | 72 6c 79 20 61 20 63 6f |d by nea|rly a co|
|000045f0| 6d 70 6c 65 74 65 20 77 | 69 6e 64 6f 77 66 75 6c |mplete w|indowful|
|00004600| 20 6f 66 20 74 65 78 74 | 2e 0a 0a 4e 6f 74 65 20 | of text|...Note |
|00004610| 74 68 61 74 20 74 68 69 | 73 20 63 6f 6d 6d 61 6e |that thi|s comman|
|00004620| 64 20 63 6f 72 72 65 63 | 74 6c 79 20 68 61 6e 64 |d correc|tly hand|
|00004630| 6c 65 73 20 63 61 73 65 | 73 20 69 6e 20 77 68 69 |les case|s in whi|
|00004640| 63 68 20 60 73 63 72 6f | 6c 6c 2d 69 6e 2d 70 6c |ch `scro|ll-in-pl|
|00004650| 61 63 65 27 20 68 61 73 | 20 61 0a 62 75 66 66 65 |ace' has| a.buffe|
|00004660| 72 2d 6c 6f 63 61 6c 20 | 76 61 6c 75 65 20 69 6e |r-local |value in|
|00004670| 20 74 68 65 20 77 69 6e | 64 6f 77 20 74 6f 20 62 | the win|dow to b|
|00004680| 65 20 73 63 72 6f 6c 6c | 65 64 2e 20 20 54 68 61 |e scroll|ed. Tha|
|00004690| 74 20 76 61 6c 75 65 20 | 69 73 20 68 6f 6e 6f 72 |t value |is honor|
|000046a0| 65 64 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ed...(de|falias '|
|000046b0| 73 63 72 6f 6c 6c 2d 64 | 6f 77 6e 20 23 5b 28 26 |scroll-d|own #[(&|
|000046c0| 6f 70 74 69 6f 6e 61 6c | 20 6c 69 6e 65 73 29 20 |optional| lines) |
|000046d0| 22 c0 c1 20 5c 6e c3 23 | 87 22 20 5b 73 63 72 6f |".. \n.#|." [scro|
|000046e0| 6c 6c 2d 77 69 6e 64 6f | 77 20 73 63 72 6f 6c 6c |ll-windo|w scroll|
|000046f0| 2d 63 68 6f 6f 73 65 2d | 77 69 6e 64 6f 77 20 6c |-choose-|window l|
|00004700| 69 6e 65 73 20 2d 31 5d | 20 34 20 28 23 24 20 2e |ines -1]| 4 (#$ .|
|00004710| 20 31 37 30 31 39 29 20 | 22 50 22 5d 29 0a 23 40 | 17019) |"P"]).#@|
|00004720| 31 30 35 38 20 53 63 72 | 6f 6c 6c 20 74 68 65 20 |1058 Scr|oll the |
|00004730| 74 65 78 74 20 6f 66 20 | 74 68 65 20 63 75 72 72 |text of |the curr|
|00004740| 65 6e 74 20 77 69 6e 64 | 6f 77 20 75 70 77 61 72 |ent wind|ow upwar|
|00004750| 64 20 62 79 20 4c 49 4e | 45 53 20 6c 69 6e 65 73 |d by LIN|ES lines|
|00004760| 2e 20 20 41 73 20 61 20 | 73 70 65 63 69 61 6c 0a |. As a |special.|
|00004770| 63 61 73 65 2c 20 77 68 | 65 6e 20 74 68 65 20 63 |case, wh|en the c|
|00004780| 75 72 72 65 6e 74 20 77 | 69 6e 64 6f 77 20 69 73 |urrent w|indow is|
|00004790| 20 61 20 6d 69 6e 69 62 | 75 66 66 65 72 20 77 69 | a minib|uffer wi|
|000047a0| 6e 64 6f 77 2c 20 74 68 | 69 73 20 63 6f 6d 6d 61 |ndow, th|is comma|
|000047b0| 6e 64 20 73 63 72 6f 6c | 6c 73 20 74 68 65 0a 60 |nd scrol|ls the.`|
|000047c0| 6d 69 6e 69 62 75 66 66 | 65 72 2d 73 63 72 6f 6c |minibuff|er-scrol|
|000047d0| 6c 2d 77 69 6e 64 6f 77 | 27 20 28 77 68 69 63 68 |l-window|' (which|
|000047e0| 20 69 73 20 75 73 75 61 | 6c 6c 79 20 74 68 65 20 | is usua|lly the |
|000047f0| 6c 69 73 74 20 6f 66 20 | 63 6f 6d 70 6c 65 74 69 |list of |completi|
|00004800| 6f 6e 73 29 20 69 66 20 | 69 74 0a 65 78 69 73 74 |ons) if |it.exist|
|00004810| 73 2c 20 6f 72 20 6f 74 | 68 65 72 77 69 73 65 20 |s, or ot|herwise |
|00004820| 74 68 65 20 6e 65 78 74 | 20 77 69 6e 64 6f 77 20 |the next| window |
|00004830| 69 6e 20 74 68 65 20 63 | 61 6e 6f 6e 69 63 61 6c |in the c|anonical|
|00004840| 20 6f 72 64 65 72 69 6e | 67 20 6f 66 20 77 69 6e | orderin|g of win|
|00004850| 64 6f 77 73 2e 0a 0a 54 | 68 65 20 61 72 67 75 6d |dows...T|he argum|
|00004860| 65 6e 74 20 4c 49 4e 45 | 53 20 69 73 20 6f 70 74 |ent LINE|S is opt|
|00004870| 69 6f 6e 61 6c 2e 20 20 | 49 74 73 20 6d 65 61 6e |ional. |Its mean|
|00004880| 69 6e 67 20 64 65 70 65 | 6e 64 73 20 6f 6e 20 74 |ing depe|nds on t|
|00004890| 68 65 20 63 75 72 72 65 | 6e 74 20 76 61 6c 75 65 |he curre|nt value|
|000048a0| 20 6f 66 0a 74 68 65 20 | 76 61 72 69 61 62 6c 65 | of.the |variable|
|000048b0| 20 60 73 63 72 6f 6c 6c | 2d 69 6e 2d 70 6c 61 63 | `scroll|-in-plac|
|000048c0| 65 27 2e 0a 0a 57 68 65 | 6e 20 74 68 65 20 76 61 |e'...Whe|n the va|
|000048d0| 72 69 61 62 6c 65 20 60 | 73 63 72 6f 6c 6c 2d 69 |riable `|scroll-i|
|000048e0| 6e 2d 70 6c 61 63 65 27 | 20 69 73 20 74 72 75 65 |n-place'| is true|
|000048f0| 2c 20 74 68 69 73 20 63 | 6f 6d 6d 61 6e 64 20 77 |, this c|ommand w|
|00004900| 6f 72 6b 73 20 6a 75 73 | 74 20 6c 69 6b 65 20 74 |orks jus|t like t|
|00004910| 68 65 0a 63 6f 6d 6d 61 | 6e 64 20 60 73 63 72 6f |he.comma|nd `scro|
|00004920| 6c 6c 2d 75 70 2d 69 6e | 2d 70 6c 61 63 65 27 2c |ll-up-in|-place',|
|00004930| 20 73 63 72 6f 6c 6c 69 | 6e 67 20 74 68 65 20 63 | scrolli|ng the c|
|00004940| 75 72 72 65 6e 74 20 77 | 69 6e 64 6f 77 20 61 6e |urrent w|indow an|
|00004950| 64 20 6c 65 61 76 69 6e | 67 20 70 6f 69 6e 74 0a |d leavin|g point.|
|00004960| 22 69 6e 20 70 6c 61 63 | 65 22 20 77 69 74 68 69 |"in plac|e" withi|
|00004970| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 2e 20 20 53 |n the wi|ndow. S|
|00004980| 65 65 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 61 |ee the d|ocumenta|
|00004990| 74 69 6f 6e 20 66 6f 72 | 20 74 68 65 20 63 6f 6d |tion for| the com|
|000049a0| 6d 61 6e 64 0a 60 73 63 | 72 6f 6c 6c 2d 75 70 2d |mand.`sc|roll-up-|
|000049b0| 69 6e 2d 70 6c 61 63 65 | 27 20 66 6f 72 20 6d 6f |in-place|' for mo|
|000049c0| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 0a |re infor|mation..|
|000049d0| 0a 57 68 65 6e 20 74 68 | 65 20 76 61 72 69 61 62 |.When th|e variab|
|000049e0| 6c 65 20 60 73 63 72 6f | 6c 6c 2d 69 6e 2d 70 6c |le `scro|ll-in-pl|
|000049f0| 61 63 65 27 20 69 73 20 | 60 6e 69 6c 27 20 74 68 |ace' is |`nil' th|
|00004a00| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 69 6e 76 6f 6b |is comma|nd invok|
|00004a10| 65 73 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 0a |es the s|tandard.|
|00004a20| 47 4e 55 20 45 6d 61 63 | 73 20 76 65 72 73 69 6f |GNU Emac|s versio|
|00004a30| 6e 20 6f 66 20 60 73 63 | 72 6f 6c 6c 2d 75 70 27 |n of `sc|roll-up'|
|00004a40| 2e 20 20 49 6e 20 74 68 | 61 74 20 63 61 73 65 2c |. In th|at case,|
|00004a50| 20 77 68 65 6e 20 4c 49 | 4e 45 53 20 69 73 20 60 | when LI|NES is `|
|00004a60| 6e 69 6c 27 20 74 68 65 | 0a 63 75 72 72 65 6e 74 |nil' the|.current|
|00004a70| 20 77 69 6e 64 6f 77 20 | 69 73 20 73 63 72 6f 6c | window |is scrol|
|00004a80| 6c 65 64 20 62 79 20 6e | 65 61 72 6c 79 20 61 20 |led by n|early a |
|00004a90| 63 6f 6d 70 6c 65 74 65 | 20 77 69 6e 64 6f 77 66 |complete| windowf|
|00004aa0| 75 6c 20 6f 66 20 74 65 | 78 74 2e 0a 0a 4e 6f 74 |ul of te|xt...Not|
|00004ab0| 65 20 74 68 61 74 20 74 | 68 69 73 20 63 6f 6d 6d |e that t|his comm|
|00004ac0| 61 6e 64 20 63 6f 72 72 | 65 63 74 6c 79 20 68 61 |and corr|ectly ha|
|00004ad0| 6e 64 6c 65 73 20 63 61 | 73 65 73 20 69 6e 20 77 |ndles ca|ses in w|
|00004ae0| 68 69 63 68 20 60 73 63 | 72 6f 6c 6c 2d 69 6e 2d |hich `sc|roll-in-|
|00004af0| 70 6c 61 63 65 27 20 68 | 61 73 20 61 0a 62 75 66 |place' h|as a.buf|
|00004b00| 66 65 72 2d 6c 6f 63 61 | 6c 20 76 61 6c 75 65 20 |fer-loca|l value |
|00004b10| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 20 74 6f |in the w|indow to|
|00004b20| 20 62 65 20 73 63 72 6f | 6c 6c 65 64 2e 20 20 54 | be scro|lled. T|
|00004b30| 68 61 74 20 76 61 6c 75 | 65 20 69 73 20 68 6f 6e |hat valu|e is hon|
|00004b40| 6f 72 65 64 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ored...(|defalias|
|00004b50| 20 27 73 63 72 6f 6c 6c | 2d 75 70 20 23 5b 28 26 | 'scroll|-up #[(&|
|00004b60| 6f 70 74 69 6f 6e 61 6c | 20 6c 69 6e 65 73 29 20 |optional| lines) |
|00004b70| 22 c0 c1 20 5c 6e c3 23 | 87 22 20 5b 73 63 72 6f |".. \n.#|." [scro|
|00004b80| 6c 6c 2d 77 69 6e 64 6f | 77 20 73 63 72 6f 6c 6c |ll-windo|w scroll|
|00004b90| 2d 63 68 6f 6f 73 65 2d | 77 69 6e 64 6f 77 20 6c |-choose-|window l|
|00004ba0| 69 6e 65 73 20 31 5d 20 | 34 20 28 23 24 20 2e 20 |ines 1] |4 (#$ . |
|00004bb0| 31 38 32 31 33 29 20 22 | 50 22 5d 29 0a 23 40 31 |18213) "|P"]).#@1|
|00004bc0| 34 30 38 20 53 63 72 6f | 6c 6c 20 74 68 65 20 74 |408 Scro|ll the t|
|00004bd0| 65 78 74 20 6f 66 20 74 | 68 65 20 6e 65 78 74 20 |ext of t|he next |
|00004be0| 77 69 6e 64 6f 77 20 64 | 6f 77 6e 77 61 72 64 20 |window d|ownward |
|00004bf0| 62 79 20 4c 49 4e 45 53 | 20 6c 69 6e 65 73 2e 20 |by LINES| lines. |
|00004c00| 20 54 68 65 20 6e 65 78 | 74 20 77 69 6e 64 6f 77 | The nex|t window|
|00004c10| 0a 69 73 20 67 65 6e 65 | 72 61 6c 6c 79 20 74 68 |.is gene|rally th|
|00004c20| 65 20 6f 6e 65 20 62 65 | 6c 6f 77 20 74 68 65 20 |e one be|low the |
|00004c30| 63 75 72 72 65 6e 74 20 | 6f 6e 65 2c 20 6f 72 20 |current |one, or |
|00004c40| 74 68 65 20 6f 6e 65 20 | 61 74 20 74 68 65 20 74 |the one |at the t|
|00004c50| 6f 70 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e |op of th|e screen|
|00004c60| 0a 69 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |.if the |current |
|00004c70| 77 69 6e 64 6f 77 20 69 | 73 20 61 74 20 74 68 65 |window i|s at the|
|00004c80| 20 62 6f 74 74 6f 6d 20 | 6f 66 20 74 68 65 20 73 | bottom |of the s|
|00004c90| 63 72 65 65 6e 2e 20 20 | 49 6e 20 73 70 65 63 69 |creen. |In speci|
|00004ca0| 61 6c 20 63 69 72 63 75 | 6d 73 74 61 6e 63 65 73 |al circu|mstances|
|00004cb0| 0a 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 77 69 |.this co|mmand wi|
|00004cc0| 6c 6c 20 73 63 72 6f 6c | 6c 20 61 20 77 69 6e 64 |ll scrol|l a wind|
|00004cd0| 6f 77 20 6f 74 68 65 72 | 20 74 68 61 6e 20 74 68 |ow other| than th|
|00004ce0| 65 20 6e 65 78 74 20 77 | 69 6e 64 6f 77 2e 20 20 |e next w|indow. |
|00004cf0| 52 65 61 64 20 74 68 65 | 0a 64 6f 63 75 6d 65 6e |Read the|.documen|
|00004d00| 74 61 74 69 6f 6e 20 66 | 6f 72 20 74 68 65 20 66 |tation f|or the f|
|00004d10| 75 6e 63 74 69 6f 6e 20 | 60 73 63 72 6f 6c 6c 2d |unction |`scroll-|
|00004d20| 63 68 6f 6f 73 65 2d 6f | 74 68 65 72 2d 77 69 6e |choose-o|ther-win|
|00004d30| 64 6f 77 27 20 66 6f 72 | 20 64 65 74 61 69 6c 73 |dow' for| details|
|00004d40| 2e 0a 0a 54 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |...The a|rgument |
|00004d50| 4c 49 4e 45 53 20 69 73 | 20 6f 70 74 69 6f 6e 61 |LINES is| optiona|
|00004d60| 6c 2e 20 20 49 74 73 20 | 6d 65 61 6e 69 6e 67 20 |l. Its |meaning |
|00004d70| 64 65 70 65 6e 64 73 20 | 6f 6e 20 74 68 65 20 63 |depends |on the c|
|00004d80| 75 72 72 65 6e 74 20 76 | 61 6c 75 65 20 6f 66 0a |urrent v|alue of.|
|00004d90| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 60 73 63 |the vari|able `sc|
|00004da0| 72 6f 6c 6c 2d 69 6e 2d | 70 6c 61 63 65 27 2e 0a |roll-in-|place'..|
|00004db0| 0a 57 68 65 6e 20 74 68 | 65 20 76 61 72 69 61 62 |.When th|e variab|
|00004dc0| 6c 65 20 60 73 63 72 6f | 6c 6c 2d 69 6e 2d 70 6c |le `scro|ll-in-pl|
|00004dd0| 61 63 65 27 20 69 73 20 | 74 72 75 65 2c 20 74 68 |ace' is |true, th|
|00004de0| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 77 6f 72 6b 73 |is comma|nd works|
|00004df0| 20 6a 75 73 74 20 6c 69 | 6b 65 20 74 68 65 0a 63 | just li|ke the.c|
|00004e00| 6f 6d 6d 61 6e 64 20 60 | 73 63 72 6f 6c 6c 2d 6f |ommand `|scroll-o|
|00004e10| 74 68 65 72 2d 77 69 6e | 64 6f 77 2d 64 6f 77 6e |ther-win|dow-down|
|00004e20| 2d 69 6e 2d 70 6c 61 63 | 65 27 2c 20 73 63 72 6f |-in-plac|e', scro|
|00004e30| 6c 6c 69 6e 67 20 74 68 | 65 20 6e 65 78 74 20 77 |lling th|e next w|
|00004e40| 69 6e 64 6f 77 20 61 6e | 64 0a 6c 65 61 76 69 6e |indow an|d.leavin|
|00004e50| 67 20 70 6f 69 6e 74 20 | 22 69 6e 20 70 6c 61 63 |g point |"in plac|
|00004e60| 65 22 20 77 69 74 68 69 | 6e 20 74 68 61 74 20 77 |e" withi|n that w|
|00004e70| 69 6e 64 6f 77 2e 20 20 | 53 65 65 20 74 68 65 20 |indow. |See the |
|00004e80| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 66 6f |document|ation fo|
|00004e90| 72 20 74 68 65 0a 63 6f | 6d 6d 61 6e 64 20 60 73 |r the.co|mmand `s|
|00004ea0| 63 72 6f 6c 6c 2d 6f 74 | 68 65 72 2d 77 69 6e 64 |croll-ot|her-wind|
|00004eb0| 6f 77 2d 64 6f 77 6e 2d | 69 6e 2d 70 6c 61 63 65 |ow-down-|in-place|
|00004ec0| 27 20 66 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |' for mo|re infor|
|00004ed0| 6d 61 74 69 6f 6e 2e 0a | 0a 57 68 65 6e 20 74 68 |mation..|.When th|
|00004ee0| 65 20 76 61 72 69 61 62 | 6c 65 20 60 73 63 72 6f |e variab|le `scro|
|00004ef0| 6c 6c 2d 69 6e 2d 70 6c | 61 63 65 27 20 69 73 20 |ll-in-pl|ace' is |
|00004f00| 60 6e 69 6c 27 20 74 68 | 69 73 20 63 6f 6d 6d 61 |`nil' th|is comma|
|00004f10| 6e 64 20 69 6e 76 6f 6b | 65 73 20 74 68 65 20 73 |nd invok|es the s|
|00004f20| 74 61 6e 64 61 72 64 0a | 47 4e 55 20 45 6d 61 63 |tandard.|GNU Emac|
|00004f30| 73 20 76 65 72 73 69 6f | 6e 20 6f 66 20 60 73 63 |s versio|n of `sc|
|00004f40| 72 6f 6c 6c 2d 6f 74 68 | 65 72 2d 77 69 6e 64 6f |roll-oth|er-windo|
|00004f50| 77 2d 64 6f 77 6e 27 2e | 20 20 49 6e 20 74 68 61 |w-down'.| In tha|
|00004f60| 74 20 63 61 73 65 2c 20 | 77 68 65 6e 20 4c 49 4e |t case, |when LIN|
|00004f70| 45 53 20 69 73 0a 60 6e | 69 6c 27 20 74 68 65 20 |ES is.`n|il' the |
|00004f80| 6e 65 78 74 20 77 69 6e | 64 6f 77 20 69 73 20 73 |next win|dow is s|
|00004f90| 63 72 6f 6c 6c 65 64 20 | 62 79 20 6e 65 61 72 6c |crolled |by nearl|
|00004fa0| 79 20 61 20 63 6f 6d 70 | 6c 65 74 65 20 77 69 6e |y a comp|lete win|
|00004fb0| 64 6f 77 66 75 6c 20 6f | 66 20 74 65 78 74 2e 0a |dowful o|f text..|
|00004fc0| 28 4e 6f 74 65 20 74 68 | 61 74 20 60 73 63 72 6f |(Note th|at `scro|
|00004fd0| 6c 6c 2d 6f 74 68 65 72 | 2d 77 69 6e 64 6f 77 2d |ll-other|-window-|
|00004fe0| 64 6f 77 6e 27 20 66 69 | 72 73 74 20 61 70 70 65 |down' fi|rst appe|
|00004ff0| 61 72 65 64 20 61 73 20 | 61 20 73 74 61 6e 64 61 |ared as |a standa|
|00005000| 72 64 20 63 6f 6d 6d 61 | 6e 64 20 69 6e 0a 74 68 |rd comma|nd in.th|
|00005010| 65 20 46 53 46 27 73 20 | 47 4e 55 20 45 6d 61 63 |e FSF's |GNU Emac|
|00005020| 73 20 31 39 2e 32 36 2e | 20 20 49 66 20 74 68 65 |s 19.26.| If the|
|00005030| 20 62 75 69 6c 74 69 6e | 20 76 65 72 73 69 6f 6e | builtin| version|
|00005040| 20 6f 66 20 74 68 61 74 | 20 63 6f 6d 6d 61 6e 64 | of that| command|
|00005050| 20 69 73 20 6e 6f 74 0a | 61 76 61 69 6c 61 62 6c | is not.|availabl|
|00005060| 65 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |e in the| current|
|00005070| 20 45 6d 61 63 73 20 73 | 79 73 74 65 6d 2c 20 61 | Emacs s|ystem, a|
|00005080| 6e 20 65 71 75 69 76 61 | 6c 65 6e 74 20 61 63 74 |n equiva|lent act|
|00005090| 69 6f 6e 20 69 73 20 69 | 6e 76 6f 6b 65 64 0a 69 |ion is i|nvoked.i|
|000050a0| 6e 73 74 65 61 64 2e 29 | 0a 0a 4e 6f 74 65 20 74 |nstead.)|..Note t|
|000050b0| 68 61 74 20 74 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |hat this| command|
|000050c0| 20 63 6f 72 72 65 63 74 | 6c 79 20 68 61 6e 64 6c | correct|ly handl|
|000050d0| 65 73 20 63 61 73 65 73 | 20 69 6e 20 77 68 69 63 |es cases| in whic|
|000050e0| 68 20 60 73 63 72 6f 6c | 6c 2d 69 6e 2d 70 6c 61 |h `scrol|l-in-pla|
|000050f0| 63 65 27 20 68 61 73 20 | 61 0a 62 75 66 66 65 72 |ce' has |a.buffer|
|00005100| 2d 6c 6f 63 61 6c 20 76 | 61 6c 75 65 20 69 6e 20 |-local v|alue in |
|00005110| 74 68 65 20 77 69 6e 64 | 6f 77 20 74 6f 20 62 65 |the wind|ow to be|
|00005120| 20 73 63 72 6f 6c 6c 65 | 64 2e 20 20 54 68 61 74 | scrolle|d. That|
|00005130| 20 76 61 6c 75 65 20 69 | 73 20 68 6f 6e 6f 72 65 | value i|s honore|
|00005140| 64 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |d...(def|alias 's|
|00005150| 63 72 6f 6c 6c 2d 6f 74 | 68 65 72 2d 77 69 6e 64 |croll-ot|her-wind|
|00005160| 6f 77 2d 64 6f 77 6e 20 | 23 5b 28 26 6f 70 74 69 |ow-down |#[(&opti|
|00005170| 6f 6e 61 6c 20 6c 69 6e | 65 73 29 20 22 c0 20 19 |onal lin|es) ". .|
|00005180| c2 09 21 1b 8a 0b 71 88 | 0c 29 ab 88 c5 09 0e 06 |..!...q.|.)......|
|00005190| c7 23 aa ad c8 16 09 ca | cb 21 ab 83 cc 16 0b cd |.#......|.!......|
|000051a0| ce 21 ab 86 ce 0e 06 21 | aa 97 cf 0e 06 ac 83 d0 |.!.....!|........|
|000051b0| aa 8e 0e 06 d0 61 ab 83 | c8 aa 85 d1 0e 06 21 5b |.....a..|......![|
|000051c0| 21 2a 87 22 20 5b 73 63 | 72 6f 6c 6c 2d 63 68 6f |!*." [sc|roll-cho|
|000051d0| 6f 73 65 2d 6f 74 68 65 | 72 2d 77 69 6e 64 6f 77 |ose-othe|r-window|
|000051e0| 20 6f 74 68 65 72 2d 77 | 69 6e 64 6f 77 20 77 69 | other-w|indow wi|
|000051f0| 6e 64 6f 77 2d 62 75 66 | 66 65 72 20 6f 74 68 65 |ndow-buf|fer othe|
|00005200| 72 2d 77 69 6e 64 6f 77 | 2d 62 75 66 66 65 72 20 |r-window|-buffer |
|00005210| 73 63 72 6f 6c 6c 2d 69 | 6e 2d 70 6c 61 63 65 20 |scroll-i|n-place |
|00005220| 73 63 72 6f 6c 6c 2d 77 | 69 6e 64 6f 77 2d 69 6e |scroll-w|indow-in|
|00005230| 2d 70 6c 61 63 65 20 6c | 69 6e 65 73 20 2d 31 20 |-place l|ines -1 |
|00005240| 6e 69 6c 20 73 63 72 6f | 6c 6c 2d 70 72 65 76 69 |nil scro|ll-previ|
|00005250| 6f 75 73 2d 77 69 6e 64 | 6f 77 20 62 6f 75 6e 64 |ous-wind|ow bound|
|00005260| 70 20 7a 6d 61 63 73 2d | 72 65 67 69 6f 6e 2d 73 |p zmacs-|region-s|
|00005270| 74 61 79 73 20 74 20 66 | 62 6f 75 6e 64 70 20 6f |tays t f|boundp o|
|00005280| 72 69 67 69 6e 61 6c 2d | 73 63 72 6f 6c 6c 2d 6f |riginal-|scroll-o|
|00005290| 74 68 65 72 2d 77 69 6e | 64 6f 77 2d 64 6f 77 6e |ther-win|dow-down|
|000052a0| 20 6f 72 69 67 69 6e 61 | 6c 2d 73 63 72 6f 6c 6c | origina|l-scroll|
|000052b0| 2d 6f 74 68 65 72 2d 77 | 69 6e 64 6f 77 20 2d 20 |-other-w|indow - |
|000052c0| 70 72 65 66 69 78 2d 6e | 75 6d 65 72 69 63 2d 76 |prefix-n|umeric-v|
|000052d0| 61 6c 75 65 5d 20 34 20 | 28 23 24 20 2e 20 31 39 |alue] 4 |(#$ . 19|
|000052e0| 33 39 36 29 20 22 50 22 | 5d 29 0a 23 40 31 31 35 |396) "P"|]).#@115|
|000052f0| 38 20 53 63 72 6f 6c 6c | 20 74 68 65 20 74 65 78 |8 Scroll| the tex|
|00005300| 74 20 6f 66 20 74 68 65 | 20 6e 65 78 74 20 77 69 |t of the| next wi|
|00005310| 6e 64 6f 77 20 75 70 77 | 61 72 64 20 62 79 20 4c |ndow upw|ard by L|
|00005320| 49 4e 45 53 20 6c 69 6e | 65 73 2e 20 20 54 68 65 |INES lin|es. The|
|00005330| 20 6e 65 78 74 20 77 69 | 6e 64 6f 77 0a 69 73 20 | next wi|ndow.is |
|00005340| 67 65 6e 65 72 61 6c 6c | 79 20 74 68 65 20 6f 6e |generall|y the on|
|00005350| 65 20 62 65 6c 6f 77 20 | 74 68 65 20 63 75 72 72 |e below |the curr|
|00005360| 65 6e 74 20 6f 6e 65 2c | 20 6f 72 20 74 68 65 20 |ent one,| or the |
|00005370| 6f 6e 65 20 61 74 20 74 | 68 65 20 74 6f 70 20 6f |one at t|he top o|
|00005380| 66 20 74 68 65 20 73 63 | 72 65 65 6e 0a 69 66 20 |f the sc|reen.if |
|00005390| 74 68 65 20 63 75 72 72 | 65 6e 74 20 77 69 6e 64 |the curr|ent wind|
|000053a0| 6f 77 20 69 73 20 61 74 | 20 74 68 65 20 62 6f 74 |ow is at| the bot|
|000053b0| 74 6f 6d 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |tom of t|he scree|
|000053c0| 6e 2e 20 20 49 6e 20 73 | 70 65 63 69 61 6c 20 63 |n. In s|pecial c|
|000053d0| 69 72 63 75 6d 73 74 61 | 6e 63 65 73 0a 74 68 69 |ircumsta|nces.thi|
|000053e0| 73 20 63 6f 6d 6d 61 6e | 64 20 77 69 6c 6c 20 73 |s comman|d will s|
|000053f0| 63 72 6f 6c 6c 20 61 20 | 77 69 6e 64 6f 77 20 6f |croll a |window o|
|00005400| 74 68 65 72 20 74 68 61 | 6e 20 74 68 65 20 6e 65 |ther tha|n the ne|
|00005410| 78 74 20 77 69 6e 64 6f | 77 2e 20 20 52 65 61 64 |xt windo|w. Read|
|00005420| 20 74 68 65 0a 64 6f 63 | 75 6d 65 6e 74 61 74 69 | the.doc|umentati|
|00005430| 6f 6e 20 66 6f 72 20 74 | 68 65 20 66 75 6e 63 74 |on for t|he funct|
|00005440| 69 6f 6e 20 60 73 63 72 | 6f 6c 6c 2d 63 68 6f 6f |ion `scr|oll-choo|
|00005450| 73 65 2d 6f 74 68 65 72 | 2d 77 69 6e 64 6f 77 27 |se-other|-window'|
|00005460| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 2e 0a 0a 54 | for det|ails...T|
|00005470| 68 65 20 61 72 67 75 6d | 65 6e 74 20 4c 49 4e 45 |he argum|ent LINE|
|00005480| 53 20 69 73 20 6f 70 74 | 69 6f 6e 61 6c 2e 20 20 |S is opt|ional. |
|00005490| 49 74 73 20 6d 65 61 6e | 69 6e 67 20 64 65 70 65 |Its mean|ing depe|
|000054a0| 6e 64 73 20 6f 6e 20 74 | 68 65 20 63 75 72 72 65 |nds on t|he curre|
|000054b0| 6e 74 20 76 61 6c 75 65 | 20 6f 66 0a 74 68 65 20 |nt value| of.the |
|000054c0| 76 61 72 69 61 62 6c 65 | 20 60 73 63 72 6f 6c 6c |variable| `scroll|
|000054d0| 2d 69 6e 2d 70 6c 61 63 | 65 27 2e 0a 0a 57 68 65 |-in-plac|e'...Whe|
|000054e0| 6e 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |n the va|riable `|
|000054f0| 73 63 72 6f 6c 6c 2d 69 | 6e 2d 70 6c 61 63 65 27 |scroll-i|n-place'|
|00005500| 20 69 73 20 74 72 75 65 | 2c 20 74 68 69 73 20 63 | is true|, this c|
|00005510| 6f 6d 6d 61 6e 64 20 77 | 6f 72 6b 73 20 6a 75 73 |ommand w|orks jus|
|00005520| 74 20 6c 69 6b 65 20 74 | 68 65 0a 63 6f 6d 6d 61 |t like t|he.comma|
|00005530| 6e 64 20 60 73 63 72 6f | 6c 6c 2d 6f 74 68 65 72 |nd `scro|ll-other|
|00005540| 2d 77 69 6e 64 6f 77 2d | 69 6e 2d 70 6c 61 63 65 |-window-|in-place|
|00005550| 27 2c 20 73 63 72 6f 6c | 6c 69 6e 67 20 74 68 65 |', scrol|ling the|
|00005560| 20 6e 65 78 74 20 77 69 | 6e 64 6f 77 20 61 6e 64 | next wi|ndow and|
|00005570| 20 6c 65 61 76 69 6e 67 | 0a 70 6f 69 6e 74 20 22 | leaving|.point "|
|00005580| 69 6e 20 70 6c 61 63 65 | 22 20 77 69 74 68 69 6e |in place|" within|
|00005590| 20 74 68 61 74 20 77 69 | 6e 64 6f 77 2e 20 20 53 | that wi|ndow. S|
|000055a0| 65 65 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 61 |ee the d|ocumenta|
|000055b0| 74 69 6f 6e 20 66 6f 72 | 20 74 68 65 20 63 6f 6d |tion for| the com|
|000055c0| 6d 61 6e 64 0a 60 73 63 | 72 6f 6c 6c 2d 6f 74 68 |mand.`sc|roll-oth|
|000055d0| 65 72 2d 77 69 6e 64 6f | 77 2d 69 6e 2d 70 6c 61 |er-windo|w-in-pla|
|000055e0| 63 65 27 20 66 6f 72 20 | 6d 6f 72 65 20 69 6e 66 |ce' for |more inf|
|000055f0| 6f 72 6d 61 74 69 6f 6e | 2e 0a 0a 57 68 65 6e 20 |ormation|...When |
|00005600| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 60 73 63 |the vari|able `sc|
|00005610| 72 6f 6c 6c 2d 69 6e 2d | 70 6c 61 63 65 27 20 69 |roll-in-|place' i|
|00005620| 73 20 60 6e 69 6c 27 20 | 74 68 69 73 20 63 6f 6d |s `nil' |this com|
|00005630| 6d 61 6e 64 20 69 6e 76 | 6f 6b 65 73 20 74 68 65 |mand inv|okes the|
|00005640| 20 73 74 61 6e 64 61 72 | 64 0a 47 4e 55 20 45 6d | standar|d.GNU Em|
|00005650| 61 63 73 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 60 |acs vers|ion of `|
|00005660| 73 63 72 6f 6c 6c 2d 6f | 74 68 65 72 2d 77 69 6e |scroll-o|ther-win|
|00005670| 64 6f 77 27 2e 20 20 49 | 6e 20 74 68 61 74 20 63 |dow'. I|n that c|
|00005680| 61 73 65 2c 20 77 68 65 | 6e 20 4c 49 4e 45 53 20 |ase, whe|n LINES |
|00005690| 69 73 20 60 6e 69 6c 27 | 0a 74 68 65 20 6e 65 78 |is `nil'|.the nex|
|000056a0| 74 20 77 69 6e 64 6f 77 | 20 69 73 20 73 63 72 6f |t window| is scro|
|000056b0| 6c 6c 65 64 20 62 79 20 | 6e 65 61 72 6c 79 20 61 |lled by |nearly a|
|000056c0| 20 63 6f 6d 70 6c 65 74 | 65 20 77 69 6e 64 6f 77 | complet|e window|
|000056d0| 66 75 6c 20 6f 66 20 74 | 65 78 74 2e 0a 0a 4e 6f |ful of t|ext...No|
|000056e0| 74 65 20 74 68 61 74 20 | 74 68 69 73 20 63 6f 6d |te that |this com|
|000056f0| 6d 61 6e 64 20 63 6f 72 | 72 65 63 74 6c 79 20 68 |mand cor|rectly h|
|00005700| 61 6e 64 6c 65 73 20 63 | 61 73 65 73 20 69 6e 20 |andles c|ases in |
|00005710| 77 68 69 63 68 20 60 73 | 63 72 6f 6c 6c 2d 69 6e |which `s|croll-in|
|00005720| 2d 70 6c 61 63 65 27 20 | 68 61 73 20 61 0a 62 75 |-place' |has a.bu|
|00005730| 66 66 65 72 2d 6c 6f 63 | 61 6c 20 76 61 6c 75 65 |ffer-loc|al value|
|00005740| 20 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 20 74 | in the |window t|
|00005750| 6f 20 62 65 20 73 63 72 | 6f 6c 6c 65 64 2e 20 20 |o be scr|olled. |
|00005760| 54 68 61 74 20 76 61 6c | 75 65 20 69 73 20 68 6f |That val|ue is ho|
|00005770| 6e 6f 72 65 64 2e 1f 0a | 28 64 65 66 61 6c 69 61 |nored...|(defalia|
|00005780| 73 20 27 73 63 72 6f 6c | 6c 2d 6f 74 68 65 72 2d |s 'scrol|l-other-|
|00005790| 77 69 6e 64 6f 77 20 23 | 5b 28 26 6f 70 74 69 6f |window #|[(&optio|
|000057a0| 6e 61 6c 20 6c 69 6e 65 | 73 29 20 22 c0 20 19 c2 |nal line|s) ". ..|
|000057b0| 09 21 1b 8a 0b 71 88 0c | 29 ab 88 c5 09 0e 06 c7 |.!...q..|).......|
|000057c0| 23 aa 8f c8 16 09 ca cb | 21 ab 83 cc 16 0b cd 0e |#.......|!.......|
|000057d0| 06 21 2a 87 22 20 5b 73 | 63 72 6f 6c 6c 2d 63 68 |.!*." [s|croll-ch|
|000057e0| 6f 6f 73 65 2d 6f 74 68 | 65 72 2d 77 69 6e 64 6f |oose-oth|er-windo|
|000057f0| 77 20 6f 74 68 65 72 2d | 77 69 6e 64 6f 77 20 77 |w other-|window w|
|00005800| 69 6e 64 6f 77 2d 62 75 | 66 66 65 72 20 6f 74 68 |indow-bu|ffer oth|
|00005810| 65 72 2d 77 69 6e 64 6f | 77 2d 62 75 66 66 65 72 |er-windo|w-buffer|
|00005820| 20 73 63 72 6f 6c 6c 2d | 69 6e 2d 70 6c 61 63 65 | scroll-|in-place|
|00005830| 20 73 63 72 6f 6c 6c 2d | 77 69 6e 64 6f 77 2d 69 | scroll-|window-i|
|00005840| 6e 2d 70 6c 61 63 65 20 | 6c 69 6e 65 73 20 31 20 |n-place |lines 1 |
|00005850| 6e 69 6c 20 73 63 72 6f | 6c 6c 2d 70 72 65 76 69 |nil scro|ll-previ|
|00005860| 6f 75 73 2d 77 69 6e 64 | 6f 77 20 62 6f 75 6e 64 |ous-wind|ow bound|
|00005870| 70 20 7a 6d 61 63 73 2d | 72 65 67 69 6f 6e 2d 73 |p zmacs-|region-s|
|00005880| 74 61 79 73 20 74 20 6f | 72 69 67 69 6e 61 6c 2d |tays t o|riginal-|
|00005890| 73 63 72 6f 6c 6c 2d 6f | 74 68 65 72 2d 77 69 6e |scroll-o|ther-win|
|000058a0| 64 6f 77 5d 20 34 20 28 | 23 24 20 2e 20 32 31 32 |dow] 4 (|#$ . 212|
|000058b0| 33 34 29 20 22 50 22 5d | 29 0a 23 40 32 38 30 37 |34) "P"]|).#@2807|
|000058c0| 20 53 63 72 6f 6c 6c 20 | 57 49 4e 44 4f 57 20 76 | Scroll |WINDOW v|
|000058d0| 65 72 74 69 63 61 6c 6c | 79 20 62 79 20 74 68 65 |erticall|y by the|
|000058e0| 20 67 69 76 65 6e 20 6e | 75 6d 62 65 72 20 6f 66 | given n|umber of|
|000058f0| 20 77 69 6e 64 6f 77 20 | 4c 49 4e 45 53 20 69 6e | window |LINES in|
|00005900| 20 74 68 65 20 67 69 76 | 65 6e 0a 44 49 52 45 43 | the giv|en.DIREC|
|00005910| 54 49 4f 4e 2c 20 6c 65 | 61 76 69 6e 67 20 74 68 |TION, le|aving th|
|00005920| 65 20 77 69 6e 64 6f 77 | 27 73 20 70 6f 69 6e 74 |e window|'s point|
|00005930| 20 61 73 20 63 6c 6f 73 | 65 20 61 73 20 70 6f 73 | as clos|e as pos|
|00005940| 73 69 62 6c 65 20 74 6f | 20 69 74 73 20 6f 72 69 |sible to| its ori|
|00005950| 67 69 6e 61 6c 0a 77 69 | 6e 64 6f 77 20 70 6f 73 |ginal.wi|ndow pos|
|00005960| 69 74 69 6f 6e 20 28 77 | 69 6e 64 6f 77 20 6c 69 |ition (w|indow li|
|00005970| 6e 65 20 61 6e 64 20 63 | 6f 6c 75 6d 6e 29 2e 20 |ne and c|olumn). |
|00005980| 20 49 6e 20 6f 74 68 65 | 72 20 77 6f 72 64 73 2c | In othe|r words,|
|00005990| 20 74 68 65 20 77 69 6e | 64 6f 77 27 73 20 70 6f | the win|dow's po|
|000059a0| 69 6e 74 0a 69 73 20 6c | 65 66 74 20 22 69 6e 20 |int.is l|eft "in |
|000059b0| 70 6c 61 63 65 22 20 77 | 69 74 68 69 6e 20 74 68 |place" w|ithin th|
|000059c0| 65 20 77 69 6e 64 6f 77 | 2e 0a 0a 4e 6f 74 65 20 |e window|...Note |
|000059d0| 74 68 61 74 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |that the| window |
|000059e0| 74 6f 20 62 65 20 73 63 | 72 6f 6c 6c 65 64 20 64 |to be sc|rolled d|
|000059f0| 6f 65 73 20 6e 6f 74 20 | 68 61 76 65 20 74 6f 20 |oes not |have to |
|00005a00| 62 65 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 20 |be the s|elected |
|00005a10| 77 69 6e 64 6f 77 2c 0a | 61 6e 64 20 74 68 61 74 |window,.|and that|
|00005a20| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 64 | this fu|nction d|
|00005a30| 6f 65 73 20 6e 6f 74 20 | 63 68 61 6e 67 65 20 77 |oes not |change w|
|00005a40| 68 69 63 68 20 77 69 6e | 64 6f 77 20 69 73 20 73 |hich win|dow is s|
|00005a50| 65 6c 65 63 74 65 64 2e | 0a 0a 4c 49 4e 45 53 20 |elected.|..LINES |
|00005a60| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 6e 75 |specifie|s the nu|
|00005a70| 6d 62 65 72 20 6f 66 20 | 77 69 6e 64 6f 77 20 6c |mber of |window l|
|00005a80| 69 6e 65 73 20 74 6f 20 | 73 63 72 6f 6c 6c 20 61 |ines to |scroll a|
|00005a90| 6e 64 20 69 73 20 69 6e | 74 65 72 70 72 65 74 65 |nd is in|terprete|
|00005aa0| 64 20 61 73 20 69 66 0a | 69 74 20 77 65 72 65 20 |d as if.|it were |
|00005ab0| 61 20 72 61 77 20 70 72 | 65 66 69 78 20 61 72 67 |a raw pr|efix arg|
|00005ac0| 75 6d 65 6e 74 2e 20 20 | 49 66 20 4c 49 4e 45 53 |ument. |If LINES|
|00005ad0| 20 69 73 20 60 6e 69 6c | 27 2c 20 74 68 65 20 77 | is `nil|', the w|
|00005ae0| 69 6e 64 6f 77 20 69 73 | 20 73 63 72 6f 6c 6c 65 |indow is| scrolle|
|00005af0| 64 20 62 79 0a 74 68 65 | 20 61 6d 6f 75 6e 74 20 |d by.the| amount |
|00005b00| 69 74 20 77 61 73 20 6d | 6f 76 65 64 20 62 79 20 |it was m|oved by |
|00005b10| 74 68 65 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |the imme|diately |
|00005b20| 70 72 65 76 69 6f 75 73 | 20 22 69 6e 20 70 6c 61 |previous| "in pla|
|00005b30| 63 65 22 20 73 63 72 6f | 6c 6c 69 6e 67 0a 63 6f |ce" scro|lling.co|
|00005b40| 6d 6d 61 6e 64 2c 20 6f | 72 20 62 79 20 74 68 65 |mmand, o|r by the|
|00005b50| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 76 61 | value o|f the va|
|00005b60| 72 69 61 62 6c 65 20 60 | 73 63 72 6f 6c 6c 2d 64 |riable `|scroll-d|
|00005b70| 65 66 61 75 6c 74 2d 6c | 69 6e 65 73 27 20 28 62 |efault-l|ines' (b|
|00005b80| 79 20 64 65 66 61 75 6c | 74 2c 0a 61 6c 6d 6f 73 |y defaul|t,.almos|
|00005b90| 74 20 61 20 77 69 6e 64 | 6f 77 66 75 6c 29 20 69 |t a wind|owful) i|
|00005ba0| 66 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 63 |f the pr|evious c|
|00005bb0| 6f 6d 6d 61 6e 64 20 77 | 61 73 20 6e 6f 74 20 61 |ommand w|as not a|
|00005bc0| 6e 20 22 69 6e 20 70 6c | 61 63 65 22 20 73 63 72 |n "in pl|ace" scr|
|00005bd0| 6f 6c 6c 69 6e 67 0a 63 | 6f 6d 6d 61 6e 64 20 28 |olling.c|ommand (|
|00005be0| 6f 72 20 77 68 65 6e 20 | 57 49 4e 44 4f 57 20 69 |or when |WINDOW i|
|00005bf0| 73 20 6e 6f 74 20 74 68 | 65 20 70 72 65 76 69 6f |s not th|e previo|
|00005c00| 75 73 6c 79 20 73 63 72 | 6f 6c 6c 65 64 20 77 69 |usly scr|olled wi|
|00005c10| 6e 64 6f 77 2c 20 6f 72 | 20 77 68 65 6e 20 74 68 |ndow, or| when th|
|00005c20| 65 0a 76 61 6c 75 65 20 | 6f 66 20 60 74 68 69 73 |e.value |of `this|
|00005c30| 2d 63 6f 6d 6d 61 6e 64 | 27 20 69 73 20 6e 6f 74 |-command|' is not|
|00005c40| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 67 72 6f | in the |same gro|
|00005c50| 75 70 20 61 73 20 74 68 | 65 20 70 72 65 76 69 6f |up as th|e previo|
|00005c60| 75 73 20 73 63 72 6f 6c | 6c 69 6e 67 0a 63 6f 6d |us scrol|ling.com|
|00005c70| 6d 61 6e 64 20 28 73 65 | 65 20 74 68 65 20 64 6f |mand (se|e the do|
|00005c80| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 66 6f 72 20 |cumentat|ion for |
|00005c90| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 60 73 63 |the vari|able `sc|
|00005ca0| 72 6f 6c 6c 2d 63 6f 6d | 6d 61 6e 64 2d 67 72 6f |roll-com|mand-gro|
|00005cb0| 75 70 73 27 29 2c 20 6f | 72 0a 77 68 65 6e 20 6f |ups'), o|r.when o|
|00005cc0| 74 68 65 72 20 63 69 72 | 63 75 6d 73 74 61 6e 63 |ther cir|cumstanc|
|00005cd0| 65 73 20 70 72 65 76 65 | 6e 74 20 74 68 65 20 70 |es preve|nt the p|
|00005ce0| 72 65 76 69 6f 75 73 20 | 73 63 72 6f 6c 6c 69 6e |revious |scrollin|
|00005cf0| 67 20 64 69 73 74 61 6e | 63 65 20 66 72 6f 6d 20 |g distan|ce from |
|00005d00| 62 65 69 6e 67 0a 75 73 | 65 64 29 2e 20 20 49 66 |being.us|ed). If|
|00005d10| 20 4c 49 4e 45 53 20 69 | 73 20 74 68 65 20 73 79 | LINES i|s the sy|
|00005d20| 6d 62 6f 6c 20 60 2d 27 | 2c 20 74 68 65 6e 20 74 |mbol `-'|, then t|
|00005d30| 68 65 20 73 63 72 6f 6c | 6c 69 6e 67 20 64 69 73 |he scrol|ling dis|
|00005d40| 74 61 6e 63 65 20 69 73 | 20 64 65 74 65 72 6d 69 |tance is| determi|
|00005d50| 6e 65 64 0a 61 73 20 69 | 66 20 4c 49 4e 45 53 20 |ned.as i|f LINES |
|00005d60| 68 61 64 20 62 65 65 6e | 20 60 6e 69 6c 27 20 61 |had been| `nil' a|
|00005d70| 6e 64 20 74 68 65 6e 20 | 74 68 61 74 20 64 69 73 |nd then |that dis|
|00005d80| 74 61 6e 63 65 20 69 73 | 20 6d 75 6c 74 69 70 6c |tance is| multipl|
|00005d90| 69 65 64 20 62 79 20 2d | 31 2e 0a 0a 44 49 52 45 |ied by -|1...DIRE|
|00005da0| 43 54 49 4f 4e 20 64 65 | 74 65 72 6d 69 6e 65 73 |CTION de|termines|
|00005db0| 20 74 68 65 20 64 69 72 | 65 63 74 69 6f 6e 20 6f | the dir|ection o|
|00005dc0| 66 20 74 68 65 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |f the sc|rolling |
|00005dd0| 6d 6f 74 69 6f 6e 2e 20 | 20 54 68 65 20 76 61 6c |motion. | The val|
|00005de0| 75 65 73 20 2d 31 20 61 | 6e 64 0a 60 64 6f 77 6e |ues -1 a|nd.`down|
|00005df0| 27 20 69 6e 64 69 63 61 | 74 65 20 64 6f 77 6e 77 |' indica|te downw|
|00005e00| 61 72 64 20 6d 6f 74 69 | 6f 6e 3b 20 74 68 65 20 |ard moti|on; the |
|00005e10| 76 61 6c 75 65 73 20 31 | 20 61 6e 64 20 60 75 70 |values 1| and `up|
|00005e20| 27 20 69 6e 64 69 63 61 | 74 65 20 75 70 77 61 72 |' indica|te upwar|
|00005e30| 64 20 6d 6f 74 69 6f 6e | 2e 0a 41 6e 79 20 6f 74 |d motion|..Any ot|
|00005e40| 68 65 72 20 76 61 6c 75 | 65 20 63 61 75 73 65 73 |her valu|e causes|
|00005e50| 20 61 6e 20 65 72 72 6f | 72 2e 0a 0a 49 66 20 74 | an erro|r...If t|
|00005e60| 68 65 20 77 69 6e 64 6f | 77 20 63 61 6e 6e 6f 74 |he windo|w cannot|
|00005e70| 20 62 65 20 73 63 72 6f | 6c 6c 65 64 20 62 79 20 | be scro|lled by |
|00005e80| 74 68 65 20 66 75 6c 6c | 20 64 69 73 74 61 6e 63 |the full| distanc|
|00005e90| 65 20 28 62 65 63 61 75 | 73 65 20 74 68 65 20 77 |e (becau|se the w|
|00005ea0| 69 6e 64 6f 77 20 68 69 | 74 73 0a 74 68 65 20 62 |indow hi|ts.the b|
|00005eb0| 6f 75 6e 64 61 72 79 20 | 6f 66 20 69 74 73 20 62 |oundary |of its b|
|00005ec0| 75 66 66 65 72 29 2c 20 | 74 68 65 20 77 69 6e 64 |uffer), |the wind|
|00005ed0| 6f 77 27 73 20 70 6f 69 | 6e 74 20 69 73 20 61 6c |ow's poi|nt is al|
|00005ee0| 6c 6f 77 65 64 20 74 6f | 20 73 74 72 61 79 20 66 |lowed to| stray f|
|00005ef0| 72 6f 6d 20 69 74 73 0a | 69 6e 69 74 69 61 6c 20 |rom its.|initial |
|00005f00| 70 6f 73 69 74 69 6f 6e | 20 73 6f 20 74 68 61 74 |position| so that|
|00005f10| 20 69 74 20 63 61 6e 20 | 6d 6f 76 65 20 74 68 65 | it can |move the|
|00005f20| 20 66 75 6c 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 | full nu|mber of |
|00005f30| 6c 69 6e 65 73 2e 20 20 | 49 66 20 70 6f 69 6e 74 |lines. |If point|
|00005f40| 20 63 61 6e 6e 6f 74 0a | 6d 6f 76 65 20 74 68 65 | cannot.|move the|
|00005f50| 20 66 75 6c 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 | full nu|mber of |
|00005f60| 6c 69 6e 65 73 2c 20 70 | 6f 69 6e 74 20 69 73 20 |lines, p|oint is |
|00005f70| 6d 6f 76 65 64 20 74 6f | 20 74 68 65 20 62 75 66 |moved to| the buf|
|00005f80| 66 65 72 20 62 6f 75 6e | 64 61 72 79 20 28 75 6e |fer boun|dary (un|
|00005f90| 6c 65 73 73 20 69 74 0a | 77 61 73 20 61 6c 72 65 |less it.|was alre|
|00005fa0| 61 64 79 20 74 68 65 72 | 65 2c 20 69 6e 20 77 68 |ady ther|e, in wh|
|00005fb0| 69 63 68 20 63 61 73 65 | 20 61 20 62 75 66 66 65 |ich case| a buffe|
|00005fc0| 72 20 62 6f 75 6e 64 61 | 72 79 20 65 72 72 6f 72 |r bounda|ry error|
|00005fd0| 20 69 73 20 73 69 67 6e | 61 6c 6c 65 64 20 69 6e | is sign|alled in|
|00005fe0| 73 74 65 61 64 29 2e 0a | 41 6e 79 20 69 6d 6d 65 |stead)..|Any imme|
|00005ff0| 64 69 61 74 65 6c 79 20 | 73 75 62 73 65 71 75 65 |diately |subseque|
|00006000| 6e 74 20 22 69 6e 20 70 | 6c 61 63 65 22 20 73 63 |nt "in p|lace" sc|
|00006010| 72 6f 6c 6c 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |rolling |commands|
|00006020| 20 77 69 6c 6c 20 74 72 | 79 20 74 6f 20 72 65 73 | will tr|y to res|
|00006030| 74 6f 72 65 0a 70 6f 69 | 6e 74 20 74 6f 20 69 74 |tore.poi|nt to it|
|00006040| 73 20 69 6e 69 74 69 61 | 6c 20 77 69 6e 64 6f 77 |s initia|l window|
|00006050| 20 70 6f 73 69 74 69 6f | 6e 2e 0a 0a 55 6e 6c 65 | positio|n...Unle|
|00006060| 73 73 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |ss the v|ariable |
|00006070| 60 73 63 72 6f 6c 6c 2d | 61 6c 6c 6f 77 2d 62 6c |`scroll-|allow-bl|
|00006080| 61 6e 6b 2d 6c 69 6e 65 | 73 2d 70 61 73 74 2d 65 |ank-line|s-past-e|
|00006090| 6f 62 27 20 69 73 20 74 | 72 75 65 2c 20 74 68 69 |ob' is t|rue, thi|
|000060a0| 73 20 66 75 6e 63 74 69 | 6f 6e 0a 61 76 6f 69 64 |s functi|on.avoid|
|000060b0| 73 20 64 69 73 70 6c 61 | 79 69 6e 67 20 62 6c 61 |s displa|ying bla|
|000060c0| 6e 6b 20 6c 69 6e 65 73 | 20 70 61 73 74 20 74 68 |nk lines| past th|
|000060d0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 62 75 66 |e end of| the buf|
|000060e0| 66 65 72 20 65 78 63 65 | 70 74 20 61 73 20 6e 65 |fer exce|pt as ne|
|000060f0| 63 65 73 73 61 72 79 20 | 74 6f 0a 6d 61 6b 65 20 |cessary |to.make |
|00006100| 61 20 70 72 65 76 69 6f | 75 73 20 22 69 6e 20 70 |a previo|us "in p|
|00006110| 6c 61 63 65 22 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |lace" sc|rolling |
|00006120| 61 63 74 69 6f 6e 20 72 | 65 76 65 72 73 69 62 6c |action r|eversibl|
|00006130| 65 2e 20 20 45 66 66 65 | 63 74 69 76 65 6c 79 2c |e. Effe|ctively,|
|00006140| 20 74 68 69 73 0a 6d 65 | 61 6e 73 20 74 68 61 74 | this.me|ans that|
|00006150| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 77 | this fu|nction w|
|00006160| 69 6c 6c 20 6e 6f 74 20 | 64 69 73 70 6c 61 79 20 |ill not |display |
|00006170| 61 6e 79 20 6d 6f 72 65 | 20 70 61 73 74 2d 65 6e |any more| past-en|
|00006180| 64 2d 6f 66 2d 62 75 66 | 66 65 72 20 62 6c 61 6e |d-of-buf|fer blan|
|00006190| 6b 0a 6c 69 6e 65 73 20 | 74 68 61 6e 20 77 65 72 |k.lines |than wer|
|000061a0| 65 20 76 69 73 69 62 6c | 65 20 77 68 65 6e 20 74 |e visibl|e when t|
|000061b0| 68 65 20 63 75 72 72 65 | 6e 74 20 73 65 71 75 65 |he curre|nt seque|
|000061c0| 6e 63 65 20 6f 66 20 22 | 69 6e 20 70 6c 61 63 65 |nce of "|in place|
|000061d0| 22 20 73 63 72 6f 6c 6c | 69 6e 67 0a 63 6f 6d 6d |" scroll|ing.comm|
|000061e0| 61 6e 64 73 20 73 74 61 | 72 74 65 64 2e 20 20 57 |ands sta|rted. W|
|000061f0| 68 65 6e 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |hen the |variable|
|00006200| 20 60 73 63 72 6f 6c 6c | 2d 61 6c 6c 6f 77 2d 62 | `scroll|-allow-b|
|00006210| 6c 61 6e 6b 2d 6c 69 6e | 65 73 2d 70 61 73 74 2d |lank-lin|es-past-|
|00006220| 65 6f 62 27 20 69 73 0a | 74 72 75 65 2c 20 74 68 |eob' is.|true, th|
|00006230| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 77 69 6c 6c |is funct|ion will|
|00006240| 20 64 69 73 70 6c 61 79 | 20 61 73 20 6d 61 6e 79 | display| as many|
|00006250| 20 62 6c 61 6e 6b 20 6c | 69 6e 65 73 20 61 73 20 | blank l|ines as |
|00006260| 69 73 20 6e 65 63 65 73 | 73 61 72 79 20 74 6f 20 |is neces|sary to |
|00006270| 6b 65 65 70 0a 70 6f 69 | 6e 74 20 22 69 6e 20 70 |keep.poi|nt "in p|
|00006280| 6c 61 63 65 22 20 69 6e | 20 74 68 65 20 77 69 6e |lace" in| the win|
|00006290| 64 6f 77 2e 0a 0a 4e 6f | 74 65 20 74 68 61 74 20 |dow...No|te that |
|000062a0| 69 66 20 57 49 4e 44 4f | 57 20 69 73 20 6e 6f 74 |if WINDO|W is not|
|000062b0| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 77 69 | the sel|ected wi|
|000062c0| 6e 64 6f 77 20 61 6e 64 | 20 69 74 20 69 73 20 69 |ndow and| it is i|
|000062d0| 6d 70 6f 73 73 69 62 6c | 65 20 74 6f 20 73 63 72 |mpossibl|e to scr|
|000062e0| 6f 6c 6c 0a 74 68 65 20 | 74 65 78 74 20 6f 66 20 |oll.the |text of |
|000062f0| 57 49 4e 44 4f 57 20 61 | 74 20 61 6c 6c 20 28 62 |WINDOW a|t all (b|
|00006300| 65 63 61 75 73 65 20 61 | 20 62 75 66 66 65 72 20 |ecause a| buffer |
|00006310| 62 6f 75 6e 64 61 72 79 | 20 69 73 20 61 6c 72 65 |boundary| is alre|
|00006320| 61 64 79 20 76 69 73 69 | 62 6c 65 29 2c 20 74 68 |ady visi|ble), th|
|00006330| 65 6e 0a 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |en.this |function|
|00006340| 20 73 69 67 6e 61 6c 73 | 20 61 20 62 75 66 66 65 | signals| a buffe|
|00006350| 72 20 62 6f 75 6e 64 61 | 72 79 20 65 72 72 6f 72 |r bounda|ry error|
|00006360| 2e 20 20 54 68 65 20 65 | 72 72 6f 72 20 69 73 20 |. The e|rror is |
|00006370| 73 69 67 6e 61 6c 6c 65 | 64 20 65 76 65 6e 20 69 |signalle|d even i|
|00006380| 66 0a 70 6f 69 6e 74 20 | 63 6f 75 6c 64 20 6f 74 |f.point |could ot|
|00006390| 68 65 72 77 69 73 65 20 | 6d 6f 76 65 20 74 68 65 |herwise |move the|
|000063a0| 20 66 75 6c 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 | full nu|mber of |
|000063b0| 6c 69 6e 65 73 2e 1f 0a | 28 64 65 66 61 6c 69 61 |lines...|(defalia|
|000063c0| 73 20 27 73 63 72 6f 6c | 6c 2d 77 69 6e 64 6f 77 |s 'scrol|l-window|
|000063d0| 2d 69 6e 2d 70 6c 61 63 | 65 20 23 5b 28 77 69 6e |-in-plac|e #[(win|
|000063e0| 64 6f 77 20 6c 69 6e 65 | 73 20 64 69 72 65 63 74 |dow line|s direct|
|000063f0| 69 6f 6e 29 20 22 c0 19 | c2 20 1b 70 1c c5 0e 06 |ion) "..|. .p....|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.